aboutsummaryrefslogtreecommitdiff
path: root/web/logging.h
diff options
context:
space:
mode:
Diffstat (limited to '')
-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