Re: [Clax86list] using common macros in NASM and C



"hackkaush" asked:
The nasm syntax for defining macros is:
%define abc 1
where as in C:
#define abc 1
so I face a problem in using the same header file containing
macros in both.

If there is some way please let me know.

In regards to the OPs problem...

Does NASM support any sort of #ifdef so as to handle the
OPs problem? How does one tell if NASM is processing the
file as opposed to another compiler? Or is there a defined
compiler constant that can be checked?

--
Jim Carlock
Post replies to the group.

.



Relevant Pages