Hi all, I have a code already written on an 8051 based controller, in which I am enabling some features through Preprocessor Directives. In that process, I am struck at the following error.
C51 COMPILER V7.50 - SN: K1DQP-01744E COPYRIGHT KEIL ELEKTRONIK GmbH 1987 - 2004 C51 FATAL-ERROR - ACTION: PARSING SOURCE-FILE ERROR: PREPROCESSOR: MACROS TOO NESTED C51 TERMINATED.
Kindly let me know what does this error mean and how to rectify this? Awaiting your reply. Regards, Balaji
There are macros that make code more readable and there are macros that makes it non-readable, non-debuggable, non-...
It seems that there are two principal directions a) no macros and b) too many macros.
I lean towards a use of macros for exceptions only e.g. if a function is entered with e.g. a variable that is too large it will call PGM_ERR().
Erik