Author Topic: Evaluate built macro  (Read 8924 times)

Offline QuestionGuy

  • New Member
  • Posts: 1
Evaluate built macro
« 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?

Offline Frank Kotler

  • NASM Developer
  • Hero Member
  • *****
  • Posts: 2667
  • Country: us
Re: Evaluate built macro
« Reply #1 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