Setup Context's logger and fallback. (Not yet used in implementation).

This commit is contained in:
2025-02-19 10:50:36 -05:00
parent 727b54c341
commit 844d431e1c
7 changed files with 95 additions and 46 deletions

View File

@ -19,16 +19,6 @@
*/
using LogFailType = ssize(*)(char const*, ...);
// By default this library will either crash or exit if an error is detected while generating codes.
// Even if set to not use GEN_FATAL, GEN_FATAL will still be used for memory failures as the library is unusable when they occur.
#ifdef GEN_DONT_USE_FATAL
#define log_failure log_fmt
#else
#define log_failure GEN_FATAL
#endif
enum AccessSpec : u32
{
AccessSpec_Default,