aboutsummaryrefslogtreecommitdiff
path: root/cpp/nissy.cpp
diff options
context:
space:
mode:
authorSebastiano Tronto <sebastiano@tronto.net>2025-04-15 14:47:58 +0200
committerSebastiano Tronto <sebastiano@tronto.net>2025-04-15 14:47:58 +0200
commitb02c083a3545b6e6b36ab62680128edec619a804 (patch)
treee54b685a0a271e5681289169b7aa105555afde1a /cpp/nissy.cpp
parent8028f9d13a5bf776e2f62581781b247d2d4ae65f (diff)
downloadnissy-core-b02c083a3545b6e6b36ab62680128edec619a804.tar.gz
nissy-core-b02c083a3545b6e6b36ab62680128edec619a804.zip
Fixed function pointer thing
Diffstat (limited to 'cpp/nissy.cpp')
-rw-r--r--cpp/nissy.cpp5
1 files changed, 1 insertions, 4 deletions
diff --git a/cpp/nissy.cpp b/cpp/nissy.cpp
index b3bf6c4..2a52ab1 100644
--- a/cpp/nissy.cpp
+++ b/cpp/nissy.cpp
@@ -227,8 +227,5 @@ namespace nissy {
227 return error{err}; 227 return error{err};
228 } 228 }
229 229
230 void set_logger(const std::function<void(const char *)>& log) 230 void set_logger(void (*log)(const char *)) { nissy_setlogger(log); }
231 {
232 nissy_setlogger(log.target<void(const char *)>());
233 }
234} 231}

Generated with cgit - Back to sebastiano.tronto.net