Make ucore_logging.h c++ safe

This commit is contained in:
Nils O. Selåsdal
2012-11-06 19:08:31 +01:00
parent f25f831093
commit 8dc80e7611
+9
View File
@@ -60,6 +60,10 @@
*
*/
#ifdef __cplusplus
extern "C" {
#endif
/** The log levels defined by ucore logging*/
enum UC_LOG_LEVEL {
UC_LL_NONE = 0,
@@ -226,5 +230,10 @@ void uc_logf(int log_level, int module, const char *file, int line, const char *
*/
#define UC_LOGF(lvl, mod, fmt, ...) uc_logf(lvl, mod, __FILE__, __LINE__, fmt, ## __VA_ARGS__)
#ifdef __cplusplus
}
#endif
#endif