Default definitions of C compiler quirk work-arounds.
This file is used for making use of extra functionality of some C compilers used for Contiki, and defining work-arounds for various quirks and problems with some other C compilers.
#include "contiki-conf.h"
Macros | |
#define | CC_ASSIGN_AGGREGATE(dest, src) *dest = *src |
Configure if the C compiler supports the assignment of struct value. More... | |
#define | CC_CONCAT(s1, s2) CC_CONCAT2(s1, s2) |
A C preprocessing macro for concatenating to strings. More... | |
#define | CC_CONCAT2(s1, s2) s1##s2 |
#define | CC_CONST_FUNCTION const |
Configure if the C compiler have problems with const function pointers. More... | |
#define | CC_DOUBLE_HASH 0 |
Configure if C compiler supports double hash marks in C macros. More... | |
#define | CC_FASTCALL CC_CONF_FASTCALL |
Configure if the C compiler supports fastcall function declarations. More... | |
#define | CC_FUNCTION_POINTER_ARGS 1 |
Configure if the C compiler supports the arguments for function pointers. More... | |
#define | CC_INLINE CC_CONF_INLINE |
#define | CC_REGISTER_ARG |
Configure if the C compiler supports the "register" keyword for function arguments. More... | |
#define | CC_UNSIGNED_CHAR_BUGS 0 |
Configure work-around for unsigned char bugs with sdcc. More... | |
#define | NULL 0 |
#define CC_ASSIGN_AGGREGATE | ( | dest, | |
src | |||
) | *dest = *src |
Configure if the C compiler supports the assignment of struct value.
#define CC_CONCAT | ( | s1, | |
s2 | |||
) | CC_CONCAT2(s1, s2) |
A C preprocessing macro for concatenating to strings.
We need use two macros (CC_CONCAT and CC_CONCAT2) in order to allow concatenation of two #defined macros.
#define CC_CONCAT2 | ( | s1, | |
s2 | |||
) | s1##s2 |
#define CC_CONST_FUNCTION const |
Configure if the C compiler have problems with const function pointers.
#define CC_DOUBLE_HASH 0 |
Configure if C compiler supports double hash marks in C macros.
#define CC_FASTCALL CC_CONF_FASTCALL |
Configure if the C compiler supports fastcall function declarations.
#define CC_FUNCTION_POINTER_ARGS 1 |
Configure if the C compiler supports the arguments for function pointers.
#define CC_INLINE CC_CONF_INLINE |
#define CC_REGISTER_ARG |
Configure if the C compiler supports the "register" keyword for function arguments.
#define CC_UNSIGNED_CHAR_BUGS 0 |
Configure work-around for unsigned char bugs with sdcc.
#define NULL 0 |