aboutsummaryrefslogtreecommitdiff
path: root/macros.h (follow)
Commit message (Collapse)AuthorAgeLines
* osc: use STRLEN() macro to make parse_rgb() more self-documentingCraig Barnes2021-10-20-0/+1
| | | | | The empty literals in the macro are to ensure the argument itself is a string literal, so it can't be used on anything else.
* macros: add UNITTEST macro and use to replace test_keymap_lookup()Craig Barnes2021-05-26-0/+16
|
* render: use portable HAS_INCLUDE() wrapper instead of __has_include()Craig Barnes2021-02-09-0/+6
|
* Print stack trace on assert() failure or when calling fatal_error()Craig Barnes2021-01-16-3/+18
| | | | | | Note: this uses the __sanitizer_print_stack_trace() function from the AddressSanitizer runtime, so it only works when AddressSanitizer is in use.
* Use wrappers from macros.h instead of bare GCC attributes/pragmasCraig Barnes2021-01-03-0/+12
|
* macros: add wrappers for more GCC/Clang attributes/pragmas/builtinsCraig Barnes2021-01-03-7/+70
|
* macros: add NOINLINE (__attribute__((noinline)))Daniel Eklöf2021-01-01-0/+6
|
* macros: add CONST (__attribute((__const__)))Daniel Eklöf2021-01-01-0/+6
|
* Replace GCC "unused" and "format" attributes with portable macrosCraig Barnes2020-08-07-0/+6
|
* config: handle allocation failure explicitlyCraig Barnes2020-08-04-0/+80