[En-Nut-Discussion] GCC and main

Nathan Moore nategoose at gmail.com
Tue Jan 26 21:05:49 CET 2010


>> I don't use the
>> #define main NutAppMain
>> in my code and just call it NutAppMain.
>
> The #define is in arch/arm.h and arch/avr/gcc.h. It makes no difference,
> because the compiler will never see main. It's processed by the
> pre-compiler.

I was just saying that I don't take advantage of the macro main because I prefer
calling it something else, and it avoids confusion with __func__, objdump, and
debugging.

Nathan



More information about the En-Nut-Discussion mailing list