From: Weddington, E. <Eri...@at...> - 2010-03-15 13:13:00
|
Yes, you should be able to. IIRC, we have C style macros in assembly code in avr-libc. > -----Original Message----- > From: praveen kaushik [mailto:pra...@gm...] > Sent: Monday, March 15, 2010 6:08 AM > To: avr...@li... > Subject: [avr32-libc-devel] Using C macros in assembly > > Can we use C style macro in assembly codes. > > e.g. we have ERANGE macro for integer overflow. In strtol we > set the errno to ERANGE in case of overflow. now in assembly > we have to either hardcode the value of ERANGE(34), that cant > be modified later (like by redefining ERANGE) or is there any > way to use C style macro in assembly code? > > Thanks > Praveen Kaushik > > > |