Add misc defs

This commit is contained in:
iabdalkader 2014-03-22 19:07:20 +02:00
parent 167ba7d9eb
commit e578633449

11
src/mdefs.h Normal file
View File

@ -0,0 +1,11 @@
#ifndef ALWAYS_INLINE
#define ALWAYS_INLINE inline __attribute__((always_inline))
#endif
#ifndef BREAK
#define BREAK() __asm__ volatile ("BKPT")
#endif
#ifndef DISABLE_OPT
#define DISABLE_OPT __attribute__((optimize("O0")))
#endif