Skip to content

Commit

Permalink
Make the log work with C++
Browse files Browse the repository at this point in the history
  • Loading branch information
RobDangerous committed Jun 23, 2024
1 parent 70a66c1 commit 6ad80f6
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions Sources/log.h
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,16 @@

#include <stdarg.h>

#ifdef __cplusplus
extern "C" {
#endif

typedef enum { LOG_LEVEL_INFO, LOG_LEVEL_WARNING, LOG_LEVEL_ERROR } log_level_t;

void kong_log(log_level_t log_level, const char *format, ...);

void kong_log_args(log_level_t log_level, const char *format, va_list args);

#ifdef __cplusplus
}
#endif

0 comments on commit 6ad80f6

Please sign in to comment.