Chris Robinson
64f8e8347f
Clean up some clang-tidy header warnings
2024-05-04 01:02:31 -07:00
Chris Robinson
ee8de61068
Handle AL errors more consistently
2024-03-14 09:18:22 -07:00
Chris Robinson
52f97eaa48
Update some includes
2024-02-13 10:45:15 -08:00
Chris Robinson
069985e1e8
Avoid implicit array-to-pointer decay
...
Note that GCC's va_list seems to be implemented as some type with an array size
of 1 (__va_list_tag[1]), which is expected to implicitly decay to a pointer
when passed as a parameter. This unfortunately necessitates NOLINTBEGIN/END
where it's used to silence clang-tidy.
2024-01-24 20:31:02 -08:00
Chris Robinson
65d0196db6
Add a function to set a callback for log messages
2023-07-02 13:21:48 -07:00
Chris Robinson
548f7ad80a
Don't pass the file handle to al_print
2023-07-01 06:07:11 -07:00
Chris Robinson
e7ea579ca5
Avoid using al::vector unnecessarily
2023-05-12 18:02:12 -07:00
Chris Robinson
3ec03cadd2
Use deduction guides instead of helper functions for spans
2023-05-05 06:46:00 -07:00
Chris Robinson
fde74453a6
Use macros for the likely/unlikely attributes
...
The syntax parser for GCC 8 (and earlier?) fails when these attributes are in
certain places.
2023-03-01 11:35:39 -08:00
Chris Robinson
bb751ebc44
Fix debug logging on Windows non-release buuilds
...
And skip logging for appropriate log levels on Windows release builds.
2023-01-16 22:15:03 -08:00
Chris Robinson
8054ccd8f9
Combine multiple al_printf definitions
...
And separate the log level prefix from the message.
2023-01-02 19:10:13 -08:00
Chris Robinson
4d757068c4
Avoid using a macro to wrap standard attributes
2022-12-06 01:48:58 -08:00
Chris Robinson
df6d61dd40
Use standard likely/unlikely attributes when available
2022-12-05 14:51:03 -08:00
Chris Robinson
3ef4bffaf9
Slightly improve logging on Windows
...
The characters won't display properly if the system codepage isn't UTF-8, but
at least it shouldn't cut the line off prematurely.
2021-11-21 21:21:46 -08:00
Chris Robinson
90cfd090d6
Fix inverted macro check
2021-10-04 00:08:39 -07:00
Chris Robinson
1a0287e2a0
Don't call OutputDebugStringW in Release builds
2021-10-03 23:49:06 -07:00
Chris Robinson
f92cc479d8
Silence some static analysis warnings
2021-10-03 08:02:57 -07:00
Chris Robinson
d578bc6cb1
Move logging to core
2020-12-17 02:47:03 -08:00