Data commit
This commit is contained in:
parent
7387c8f97b
commit
cb5bb5e222
199093 changed files with 3378972 additions and 0 deletions
34
Task/Metaprogramming/OxygenBasic/metaprogramming.basic
Normal file
34
Task/Metaprogramming/OxygenBasic/metaprogramming.basic
Normal file
|
|
@ -0,0 +1,34 @@
|
|||
'EQUATES
|
||||
|
||||
% half 0.5
|
||||
$ title "My Metaprogram"
|
||||
|
||||
'CONDITIONAL BLOCKS
|
||||
|
||||
#ifdef ...
|
||||
...
|
||||
#elseif ...
|
||||
...
|
||||
#else
|
||||
...
|
||||
#endif
|
||||
|
||||
'MACROS
|
||||
|
||||
'msdos-like
|
||||
def sum
|
||||
%1 + %2
|
||||
end def
|
||||
|
||||
'C-like
|
||||
#define sum(a,b) a + b
|
||||
|
||||
'native
|
||||
macro sum(a,b)
|
||||
a + b
|
||||
end macro
|
||||
|
||||
'native macro functions
|
||||
macro sum int(r,a,b)
|
||||
r = a + b
|
||||
end macro
|
||||
Loading…
Add table
Add a link
Reference in a new issue