Merge pull request #2671 from janisozaur/extern-c

Specify C linkage for log functions
This commit is contained in:
Ted John 2016-01-08 22:16:31 +00:00
commit 20697ac2bc
1 changed files with 8 additions and 0 deletions

View File

@ -75,9 +75,17 @@ enum {
extern int _log_levels[DIAGNOSTIC_LEVEL_COUNT];
#ifdef __cplusplus
extern "C" {
#endif // __cplusplus
void diagnostic_log(int diagnosticLevel, const char *format, ...);
void diagnostic_log_with_location(int diagnosticLevel, const char *file, const char *function, int line, const char *format, ...);
#ifdef __cplusplus
}
#endif // __cplusplus
#ifdef _MSC_VER
#define diagnostic_log_macro(level, format, ...) diagnostic_log_with_location(level, __FILE__, __FUNCTION__, __LINE__, format, __VA_ARGS__)