aboutsummaryrefslogtreecommitdiff
path: root/web/logging.h
diff options
context:
space:
mode:
authorSebastiano Tronto <sebastiano@tronto.net>2025-05-26 17:05:36 +0200
committerSebastiano Tronto <sebastiano@tronto.net>2025-05-26 17:05:36 +0200
commitfa0fa1fcb494483020a736a2bc2c5c639a2bd870 (patch)
tree909db148c91e9d9650b2f5d8eb1dee04ea8cae1b /web/logging.h
parent87852933851674cacbc8b2295d046831db27ab81 (diff)
downloadnissy-core-fa0fa1fcb494483020a736a2bc2c5c639a2bd870.tar.gz
nissy-core-fa0fa1fcb494483020a736a2bc2c5c639a2bd870.zip
Progress with web version
Diffstat (limited to 'web/logging.h')
-rw-r--r--web/logging.h17
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
11extern "C" {
12 extern int addCallbackFunction();
13 extern void callFunction(int, const char *);
14}
15
16static int logger_id = -1; 1static int logger_id = -1;
17 2
18void log(std::string s) 3void 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

Generated with cgit - Back to sebastiano.tronto.net