aboutsummaryrefslogtreecommitdiff
path: root/cpp/nissy.cpp
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--cpp/nissy.cpp7
1 files changed, 5 insertions, 2 deletions
diff --git a/cpp/nissy.cpp b/cpp/nissy.cpp
index 2a52ab1..944944b 100644
--- a/cpp/nissy.cpp
+++ b/cpp/nissy.cpp
@@ -24,7 +24,7 @@ extern "C" {
24 unsigned, unsigned, int, int, unsigned long long, const char *, 24 unsigned, unsigned, int, int, unsigned long long, const char *,
25 unsigned, char *, long long *); 25 unsigned, char *, long long *);
26 long long nissy_countmoves(const char *); 26 long long nissy_countmoves(const char *);
27 long long nissy_setlogger(void (*)(const char *)); 27 long long nissy_setlogger(void (*)(const char *, void *), void *);
28} 28}
29 29
30namespace nissy { 30namespace nissy {
@@ -227,5 +227,8 @@ namespace nissy {
227 return error{err}; 227 return error{err};
228 } 228 }
229 229
230 void set_logger(void (*log)(const char *)) { nissy_setlogger(log); } 230 void set_logger(void (*log)(const char *, void *), void *data)
231 {
232 nissy_setlogger(log, data);
233 }
231} 234}

Generated with cgit - Back to sebastiano.tronto.net