NASM - The Netwide Assembler
NASM Forum => Using NASM => Topic started by: QuestionGuy on April 08, 2010, 07:08:40 PM
-
Hi :)!
How do I evaluate a macro built by another macro? A rather simple example:
%macro test 0
%deftok one "%1"
%define a one
push byte one
%endmacro
I've tried using %[] and some strange combinations of %define, %defstr and %deftok without any results. Is it even possible to do this inside NASM without using anything else, such as the C preprocessor?
-
I'm afraid I don't have the slightest idea what you're trying to do. Can you show how you'd use this macro, and what you want it to produce?
Best,
Frank