Changes in kernel/generic/include/debug.h [1e01a35:bcc20fa1] in mainline
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
kernel/generic/include/debug.h
r1e01a35 rbcc20fa1 37 37 38 38 #include <panic.h> 39 #include <log.h> 39 40 #include <symtab_lookup.h> 40 41 … … 77 78 } while (0) 78 79 80 /** Static assert macro 81 * 82 */ 83 #define STATIC_ASSERT(expr) \ 84 _Static_assert(expr, "") 85 86 #define STATIC_ASSERT_VERBOSE(expr, msg) \ 87 _Static_assert(expr, msg) 88 89 79 90 #else /* CONFIG_DEBUG */ 80 91 81 92 #define ASSERT(expr) 82 93 #define ASSERT_VERBOSE(expr, msg) 94 #define STATIC_ASSERT(expr) 95 #define STATIC_ASSERT_VERBOSE(expr, msg) 83 96 84 97 #endif /* CONFIG_DEBUG */ … … 95 108 #define LOG(format, ...) \ 96 109 do { \ 97 printf("%s() from %s at %s:%u: " format "\n", __func__, \ 110 log(LF_OTHER, LVL_DEBUG, \ 111 "%s() from %s at %s:%u: " format,__func__, \ 98 112 symtab_fmt_name_lookup(CALLER), __FILE__, __LINE__, \ 99 113 ##__VA_ARGS__); \
Note:
See TracChangeset
for help on using the changeset viewer.