mirror of https://github.com/OpenRCT2/OpenRCT2.git
Merge pull request #2671 from janisozaur/extern-c
Specify C linkage for log functions
This commit is contained in:
commit
20697ac2bc
|
@ -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__)
|
||||
|
|
Loading…
Reference in New Issue