ARM: introduce NAKED() macro.
[bertos.git] / bertos / cfg / compiler.h
index 477094d224de1a3e39bd21b31e25b18c5be61b03..4d0c33be9a11a6eac62421476db70d5887712b9a 100644 (file)
        #define RESTRICT                __restrict__
        #define MUST_CHECK              __attribute__((warn_unused_result))
        #define PACKED                  __attribute__((packed))
+       #if CPU_ARM | CPU_CM3
+               #define NAKED           __attribute__((naked))
+       #else
+               #define NAKED
+       #endif
+
        /**
         * Force compiler to realod context variable.
         */