NASM - The Netwide Assembler

NASM Forum => Using NASM => Topic started by: Jacob Lidman on January 03, 2005, 07:55:38 PM

Title: Can someone add #define
Post by: Jacob Lidman on January 03, 2005, 07:55:38 PM
I have an improvement suggestion: add #define to the preprocessor commands and let it work like %define.

The reason why I want this is becuase GCC supports #define keyword value but nasm can only (?) handly %define keyword value. By changing this one can have the same "define"-files in both nasm and GCC thus only one config file is needed.

I would be glad if one of the nasm programmers could tell if this is possible to implement.
Title: Re: Can someone add #define
Post by: nasm64developer on January 12, 2005, 11:50:04 PM
See SF RFE #648278.

On a related note, see

http://sourceforge.net/mailarchive/message.php?msg_id=8954799 (http://sourceforge.net/mailarchive/message.php?msg_id=8954799)

for a discussion about allowing '#'
to begin an identifier. (That would
be required to make #define work.)