flat assembler
Message board for the users of flat assembler.
Index
> Macroinstructions > how to use equate as argument to ` operation? |
Author |
|
vid 06 Nov 2006, 02:11
oh shit... not again...
` and # need to be escaped GRRRRRRRRRRRRRRRR |
|||
06 Nov 2006, 02:11 |
|
vid 06 Nov 2006, 02:25
shit, doesn't work even after escaping \#, because "#" cannot be used in equate definition (at least not in this manner).
grrrr, i think i need some sleep (it's 3:00 AM here) |
|||
06 Nov 2006, 02:25 |
|
Mr_Silent 06 Nov 2006, 05:37
?
Code: macro export size, [name] { common first equ 1 forward match =0, first \{ match _lib_name,lib_name \\{ lib_name equ _lib_name\\#.\\#name \\} match _export_name,export_name \\{ export_name equ _export_name\\#_\\#name \\} \} match =1, first \{ lib_name equ name export_name equ name first equ 0 \} common match _export_name,export_name \{ if size eq public lib_name as '_' \#\`_export_name else public lib_name as '_'\#\`_export_name\#'@'\#`size end if \} forward restore export_name restore lib_name } export 4, err ,text export 4, process ,exit export 8, file ,open export , stream ,stdout export 12, stream ,write, d2dec |
|||
06 Nov 2006, 05:37 |
|
vid 06 Nov 2006, 09:43
hell, right.
i was probably to out-of-sleep then. thanks |
|||
06 Nov 2006, 09:43 |
|
< Last Thread | Next Thread > |
Forum Rules:
|
Copyright © 1999-2024, Tomasz Grysztar. Also on GitHub, YouTube.
Website powered by rwasa.