Re: [Clax86list] using common macros in NASM and C
- From: "Jim Carlock" <spamtrap@xxxxxxxxxx>
- Date: Thu, 27 Jul 2006 15:05:02 GMT
"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.
.
- References:
- using common macros in NASM and C
- From: hackkaush
- Re: using common macros in NASM and C
- From: Frank Kotler
- Re: using common macros in NASM and C
- From: randyhyde@xxxxxxxxxxxxx
- Re: [Clax86list] using common macros in NASM and C
- From: Charles A. Crayne
- Re: [Clax86list] using common macros in NASM and C
- From: randyhyde@xxxxxxxxxxxxx
- Re: [Clax86list] using common macros in NASM and C
- From: Charles A. Crayne
- using common macros in NASM and C
- Prev by Date: Re: [Clax86list] using common macros in NASM and C
- Next by Date: How to change BIOS boot sequence programmatically
- Previous by thread: Re: [Clax86list] using common macros in NASM and C
- Next by thread: Re: [Clax86list] using common macros in NASM and C
- Index(es):
Relevant Pages
|