aboutsummaryrefslogtreecommitdiff
path: root/tools/400_solvetest/solve_test.c
diff options
context:
space:
mode:
authorSebastiano Tronto <sebastiano@tronto.net>2025-04-15 15:51:40 +0200
committerSebastiano Tronto <sebastiano@tronto.net>2025-04-15 15:51:40 +0200
commitb25a939e2d8b045c083caf3264c4e5aac1cf88fb (patch)
tree37b862c82389ceddcf4624b5e26536390d6b8265 /tools/400_solvetest/solve_test.c
parentb02c083a3545b6e6b36ab62680128edec619a804 (diff)
downloadnissy-core-b25a939e2d8b045c083caf3264c4e5aac1cf88fb.tar.gz
nissy-core-b25a939e2d8b045c083caf3264c4e5aac1cf88fb.zip
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.
Diffstat (limited to 'tools/400_solvetest/solve_test.c')
-rw-r--r--tools/400_solvetest/solve_test.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/400_solvetest/solve_test.c b/tools/400_solvetest/solve_test.c
index e881030..6e7b2a5 100644
--- a/tools/400_solvetest/solve_test.c
+++ b/tools/400_solvetest/solve_test.c
@@ -104,7 +104,7 @@ int main(int argc, char **argv) {
104 104
105 solver = argv[1]; 105 solver = argv[1];
106 srand(time(NULL)); 106 srand(time(NULL));
107 nissy_setlogger(log_stderr); 107 nissy_setlogger(log_stdout, NULL);
108 108
109 sprintf(filename, "tables/%s", solver); 109 sprintf(filename, "tables/%s", solver);
110 if (getdata(solver, &buf, filename) != 0) 110 if (getdata(solver, &buf, filename) != 0)

Generated with cgit - Back to sebastiano.tronto.net