From b25a939e2d8b045c083caf3264c4e5aac1cf88fb Mon Sep 17 00:00:00 2001 From: Sebastiano Tronto Date: Tue, 15 Apr 2025 15:51:40 +0200 Subject: Better logging function Now it is possible to provide some data together with the logging function. This is useful for example in C++, where I can now provide an arbitrary callable object as data, and a simple wrapper function that call the callable object as logging function. --- cpp/examples/solve_h48h3k2.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'cpp/examples/solve_h48h3k2.cpp') diff --git a/cpp/examples/solve_h48h3k2.cpp b/cpp/examples/solve_h48h3k2.cpp index 454d6dc..7f06376 100644 --- a/cpp/examples/solve_h48h3k2.cpp +++ b/cpp/examples/solve_h48h3k2.cpp @@ -8,7 +8,7 @@ int main() { // Get verbose output - nissy::set_logger([](const char* s) { std::cout << s; }); + nissy::set_logger([](const char* s, void *u) { std::cout << s; }, NULL); // Get the scramble from the user std::cout << "Enter scramble: "; -- cgit v1.3