aboutsummaryrefslogtreecommitdiff
path: root/src/utils/dbg_log.h (unfollow)
Commit message (Collapse)AuthorFilesLines
2026-04-06Make the project build with Microsoft's broken C compiler.Sebastiano Tronto1-2/+1
MSVC is not fully C11-compliant, even when compiling with /std:c11. Some changes were needed to make the codebase compatible. Notably, the notation a[static N] and a[n] for function parameters of array type is not supported, so that had to be hidden behind a macro. Atomic types are also an experimental feature, apparently, but at least they work with the correct compiler flag. One thing that MSVC does well, however, is warning on integer conversions on /W4 level. I am not sure if Clang and GCC have something similar, so I took this chance to fix some of these.
2025-07-28Make failed assert exit immediatelySebastiano Tronto1-3/+3
2025-04-15Better logging functionSebastiano Tronto1-4/+5
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.
2025-04-14FixSebastiano Tronto1-1/+1
2025-04-08Some minor changes to the interface.Sebastiano Tronto1-2/+19
- Simplified logger to accept only a string, not a variadic list of args like printf(). This can still use some improvement, but now it is easier to use from other languages. - Fixed some misuses of the logger (wrong types etc) - Renamed some constants - Fixed some typos in comments.
2024-09-05Rename constants from _underscore to CAPSSebastiano Tronto1-4/+4
2024-08-18Reorganized folder structureSebastiano Tronto1-0/+16

Generated with cgit - Back to sebastiano.tronto.net