Unify Framework Lib 1.6.0
cc.h File Reference
#include "contiki-conf.h"

Go to the source code of this file.

Macros

#define CC_REENTRANT_ARG
 
#define CC_ALIGN_PACK
 
#define CC_REGISTER_ARG
 
#define CC_FUNCTION_POINTER_ARGS   0
 
#define CC_FASTCALL
 
#define CC_CONST_FUNCTION   const
 
#define CC_UNSIGNED_CHAR_BUGS   0
 
#define CC_DOUBLE_HASH   0
 
#define CC_INLINE
 
#define CC_ASSIGN_AGGREGATE(dest, src)   *dest = *src
 
#define CC_NO_VA_ARGS   0
 
#define NULL   0
 
#define CC_CONCAT2(s1, s2)   s1##s2
 
#define CC_CONCAT(s1, s2)   CC_CONCAT2(s1, s2)
 

Detailed Description

Default definitions of C compiler quirk work-arounds.

Author
Adam Dunkels adam@.nosp@m.dunk.nosp@m.els.c.nosp@m.om

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.

Macro Definition Documentation

◆ CC_ALIGN_PACK

#define CC_ALIGN_PACK

◆ CC_ASSIGN_AGGREGATE

#define CC_ASSIGN_AGGREGATE (   dest,
  src 
)    *dest = *src

Configure if the C compiler supports the assignment of struct value.

◆ CC_CONCAT

#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.

◆ CC_CONCAT2

#define CC_CONCAT2 (   s1,
  s2 
)    s1##s2

◆ CC_CONST_FUNCTION

#define CC_CONST_FUNCTION   const

Configure if the C compiler have problems with const function pointers

◆ CC_DOUBLE_HASH

#define CC_DOUBLE_HASH   0

Configure if C compiler supports double hash marks in C macros.

◆ CC_FASTCALL

#define CC_FASTCALL

Configure if the C compiler supports fastcall function declarations.

◆ CC_FUNCTION_POINTER_ARGS

#define CC_FUNCTION_POINTER_ARGS   0

Configure if the C compiler supports the arguments for function pointers.

◆ CC_INLINE

#define CC_INLINE

◆ CC_NO_VA_ARGS

#define CC_NO_VA_ARGS   0

◆ CC_REENTRANT_ARG

#define CC_REENTRANT_ARG

Configure if the C compiler supports the "reentrant" keyword for functions.

◆ CC_REGISTER_ARG

#define CC_REGISTER_ARG

Configure if the C compiler supports the "register" keyword for function arguments.

◆ CC_UNSIGNED_CHAR_BUGS

#define CC_UNSIGNED_CHAR_BUGS   0

Configure work-around for unsigned char bugs with sdcc.

◆ NULL

#define NULL   0