diff options
Diffstat (limited to 'web/logging.h')
| -rw-r--r-- | web/logging.h | 17 |
1 files changed, 0 insertions, 17 deletions
diff --git a/web/logging.h b/web/logging.h index b20a595..9ed4835 100644 --- a/web/logging.h +++ b/web/logging.h | |||
| @@ -1,18 +1,3 @@ | |||
| 1 | #ifndef LOGGING_H | ||
| 2 | #define LOGGING_H | ||
| 3 | |||
| 4 | #include "../cpp/nissy.h" | ||
| 5 | #include <emscripten/bind.h> | ||
| 6 | #include <string> | ||
| 7 | |||
| 8 | #define LOGGING_EMBIND \ | ||
| 9 | emscripten::function("addCallbackFunction", &addCallbackFunction); | ||
| 10 | |||
| 11 | extern "C" { | ||
| 12 | extern int addCallbackFunction(); | ||
| 13 | extern void callFunction(int, const char *); | ||
| 14 | } | ||
| 15 | |||
| 16 | static int logger_id = -1; | 1 | static int logger_id = -1; |
| 17 | 2 | ||
| 18 | void log(std::string s) | 3 | void log(std::string s) |
| @@ -33,5 +18,3 @@ void set_logger(int id) | |||
| 33 | logger_id = id; | 18 | logger_id = id; |
| 34 | nissy::set_logger(log_wrapper, NULL); | 19 | nissy::set_logger(log_wrapper, NULL); |
| 35 | } | 20 | } |
| 36 | |||
| 37 | #endif | ||
