aboutsummaryrefslogtreecommitdiff
path: root/src/utils/dbg_log.h (follow)
Commit message (Collapse)AuthorAgeFilesLines
* Make the project build with Microsoft's broken C compiler.Sebastiano Tronto2026-04-061-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.
* Make failed assert exit immediatelySebastiano Tronto2025-07-281-3/+3
|
* Better logging functionSebastiano Tronto2025-04-151-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.
* FixSebastiano Tronto2025-04-141-1/+1
|
* Some minor changes to the interface.Sebastiano Tronto2025-04-081-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.
* Rename constants from _underscore to CAPSSebastiano Tronto2024-09-051-4/+4
|
* Reorganized folder structureSebastiano Tronto2024-08-181-0/+16

Generated with cgit - Back to sebastiano.tronto.net