This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

ASM-Files, possible to generate an error message like #error xxxx in .c-files?

Hello,

i want to generate an error message if a define was not present, like here:

IF :DEF:CORTEX
   add   r3, r3, #3   ;//! Correct the value in R3

    ELSE

    IF :DEF:ARM7
    ELSE

      #error Define of CPU Architecture for ASM not set!!!

    ENDIF     

  ENDIF

Is that possible?

Best regards


Volker