aboutsummaryrefslogtreecommitdiff
path: root/macros.h (unfollow)
Commit message (Collapse)AuthorLines
2021-10-20osc: use STRLEN() macro to make parse_rgb() more self-documentingCraig Barnes-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.
2021-05-26macros: add UNITTEST macro and use to replace test_keymap_lookup()Craig Barnes-0/+16
2021-02-09render: use portable HAS_INCLUDE() wrapper instead of __has_include()Craig Barnes-0/+6
2021-01-16Print stack trace on assert() failure or when calling fatal_error()Craig Barnes-3/+18
Note: this uses the __sanitizer_print_stack_trace() function from the AddressSanitizer runtime, so it only works when AddressSanitizer is in use.
2021-01-03Use wrappers from macros.h instead of bare GCC attributes/pragmasCraig Barnes-0/+12
2021-01-03macros: add wrappers for more GCC/Clang attributes/pragmas/builtinsCraig Barnes-7/+70
2021-01-01macros: add NOINLINE (__attribute__((noinline)))Daniel Eklöf-0/+6
2021-01-01macros: add CONST (__attribute((__const__)))Daniel Eklöf-0/+6
2020-10-10selection: use appropriate check for PRIMARY pasteSergey Nazaryev-128/+3
Assume it could be a copy-paste typo. We should check PRIMARY, not CLIPBOARD. Without this fix, we can't use PRIMARY until we copy anything to CLIPBOARD.
2020-08-07Replace GCC "unused" and "format" attributes with portable macrosCraig Barnes-0/+6
2020-08-04config: handle allocation failure explicitlyCraig Barnes-0/+80