NASM - The Netwide Assembler

NASM Forum => Using NASM => Topic started by: QuestionGuy on April 08, 2010, 07:08:40 PM

Title: Evaluate built macro
Post 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:

Code: [Select]
%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?
Title: Re: Evaluate built macro
Post by: Frank Kotler on April 10, 2010, 12:56:42 AM
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