diff options
author | Luke T. Shumaker <lukeshu@lukeshu.com> | 2024-11-12 00:17:31 -0700 |
---|---|---|
committer | Luke T. Shumaker <lukeshu@lukeshu.com> | 2024-11-12 00:17:31 -0700 |
commit | 755db30028622de604ef98a5b28c2c4128b6f3d7 (patch) | |
tree | e56d5cad9816a61a18434bb88b8fee5a07dbc034 /libmisc | |
parent | dd83b1e231ea89e4ceb3302d3b68fca4761b11b8 (diff) |
Oh dang, I broke `make lint` a while back :(
Diffstat (limited to 'libmisc')
-rw-r--r-- | libmisc/assert.c | 2 | ||||
-rw-r--r-- | libmisc/include/libmisc/assert.h | 4 | ||||
-rw-r--r-- | libmisc/include/libmisc/private.h | 6 |
3 files changed, 6 insertions, 6 deletions
diff --git a/libmisc/assert.c b/libmisc/assert.c index 7817ba3..987fb4d 100644 --- a/libmisc/assert.c +++ b/libmisc/assert.c @@ -1,4 +1,4 @@ -/* libmisc/assert.h - More assertions +/* libmisc/assert.c - More assertions * * Copyright (C) 2024 Luke T. Shumaker <lukeshu@lukeshu.com> * SPDX-License-Identifier: AGPL-3.0-or-later diff --git a/libmisc/include/libmisc/assert.h b/libmisc/include/libmisc/assert.h index c2c4697..10cedfa 100644 --- a/libmisc/include/libmisc/assert.h +++ b/libmisc/include/libmisc/assert.h @@ -8,9 +8,9 @@ #define _LIBMISC_ASSERT_H_ #ifdef NDEBUG -# define assert_msg(expr, msg) ((void)0) +# define assert_msg(expr, msg) ((void)0) #else -# define assert_msg(expr, msg) do { if (!(expr)) __assert_msg_fail(#expr, __FILE__, __LINE__, __func__, msg); } while (0) +# define assert_msg(expr, msg) do { if (!(expr)) __assert_msg_fail(#expr, __FILE__, __LINE__, __func__, msg); } while (0) __attribute__((__noreturn__)) void __assert_msg_fail(const char *expr, const char *file, unsigned int line, const char *func, diff --git a/libmisc/include/libmisc/private.h b/libmisc/include/libmisc/private.h index 0eb8c42..bc5e7ad 100644 --- a/libmisc/include/libmisc/private.h +++ b/libmisc/include/libmisc/private.h @@ -4,8 +4,8 @@ * SPDX-License-Identifier: AGPL-3.0-or-later */ -#ifndef _LIBMISC_CPPUTIL_H_ -#define _LIBMISC_CPPUTIL_H_ +#ifndef _LIBMISC_PRIVATE_H_ +#define _LIBMISC_PRIVATE_H_ /* primitive utilities */ @@ -34,4 +34,4 @@ #define BEGIN_PRIVATE(name) _IF(_IS_SENTINEL(IMPLEMENTATION_FOR_##name))()(struct {) #define END_PRIVATE(name) _IF(_IS_SENTINEL(IMPLEMENTATION_FOR_##name))()(} _CAT2(_HIDDEN_, __COUNTER__);) -#endif /* _LIBMISC_CPPUTIL_H_ */ +#endif /* _LIBMISC_PRIVATE_H_ */ |