diff options
| author | Sebastiano Tronto <sebastiano@tronto.net> | 2025-05-26 17:05:36 +0200 |
|---|---|---|
| committer | Sebastiano Tronto <sebastiano@tronto.net> | 2025-05-26 17:05:36 +0200 |
| commit | fa0fa1fcb494483020a736a2bc2c5c639a2bd870 (patch) | |
| tree | 909db148c91e9d9650b2f5d8eb1dee04ea8cae1b /web/logging.h | |
| parent | 87852933851674cacbc8b2295d046831db27ab81 (diff) | |
| download | nissy-core-fa0fa1fcb494483020a736a2bc2c5c639a2bd870.tar.gz nissy-core-fa0fa1fcb494483020a736a2bc2c5c639a2bd870.zip | |
Progress with web version
Diffstat (limited to '')
| -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 | ||
