Craig Barnes
|
3d9302b6f9
|
macros: add UNITTEST macro and use to replace test_keymap_lookup()
|
2021-05-26 09:13:58 +02:00 |
|
Craig Barnes
|
e19db15104
|
render: use portable HAS_INCLUDE() wrapper instead of __has_include()
|
2021-02-09 03:14:08 +00:00 |
|
Craig Barnes
|
22f25a9e4f
|
Print stack trace on assert() failure or when calling fatal_error()
Note: this uses the __sanitizer_print_stack_trace() function from the
AddressSanitizer runtime, so it only works when AddressSanitizer is
in use.
|
2021-01-16 19:56:33 +00:00 |
|
Craig Barnes
|
39b2e46e72
|
Use wrappers from macros.h instead of bare GCC attributes/pragmas
|
2021-01-03 08:56:47 +00:00 |
|
Craig Barnes
|
2559a9711c
|
macros: add wrappers for more GCC/Clang attributes/pragmas/builtins
|
2021-01-03 08:47:12 +00:00 |
|
Daniel Eklöf
|
7d0fb3cccd
|
macros: add NOINLINE (__attribute__((noinline)))
|
2021-01-01 22:29:12 +01:00 |
|
Daniel Eklöf
|
973a57a096
|
macros: add CONST (__attribute((__const__)))
|
2021-01-01 21:09:34 +01:00 |
|
Craig Barnes
|
7eb70a453b
|
Replace GCC "unused" and "format" attributes with portable macros
|
2020-08-07 20:42:34 +01:00 |
|
Craig Barnes
|
f1fce96a1d
|
config: handle allocation failure explicitly
|
2020-08-04 23:28:16 +01:00 |
|