Detailed Description
These two macros are used to simplify the declaration of C-linkage code. Rather than worry about preprocessor directives similar to
#ifdef __cplusplus
extern "C" {
#endif
int foobar(void);
#ifdef __cplusplus
}
#endif
you simply need to use the _BEGIN_C_DECL and _END_C_DECL macros instead.
#include "lub/c_decl.h"
_BEGIN_C_DECL
int foobar(void);
_END_C_DECL