diff options
| author | peter <peter@pmikkelsen.com> | 2026-08-20 20:54:43 +0000 |
|---|---|---|
| committer | peter <peter@pmikkelsen.com> | 2026-08-20 20:54:43 +0000 |
| commit | 86feda786f115cb4468957f00b8968b986ed7c54 (patch) | |
| tree | 31228cf73674178764cd6376d483e76212181707 /src/lib/aplwc_internal.h | |
| parent | f5d445afa10ed7ba03b0ea9a5274f11904220700 (diff) | |
Get full coverage of aplwc-repl.
This required wrapping malloc so that it can fail under our control.
FossilOrigin-Name: a27ccb5f02994393a518419bae15fd26ff0016c734d96350ae2137a1d3c0937c
Diffstat (limited to 'src/lib/aplwc_internal.h')
| -rw-r--r-- | src/lib/aplwc_internal.h | 16 |
1 files changed, 1 insertions, 15 deletions
diff --git a/src/lib/aplwc_internal.h b/src/lib/aplwc_internal.h index 97a89ba..52ecd2e 100644 --- a/src/lib/aplwc_internal.h +++ b/src/lib/aplwc_internal.h @@ -2,26 +2,12 @@ #define APLWC_INTERNAL_H #include <aplwc.h> - -#define UNUSED_PARAMETER(arg) ((void)arg) +#include <aplwc_macros.h> #define RETURN_ERROR(aplwcp, rc, msg) do{ \ return ((aplwc)->last_error = (rc)); \ }while(0) -#define NELEM(x) (sizeof(x)/sizeof(x[0])) - -#if APLWC_BUILD_TYPE_DEBUG - #define ALWAYS(x) ((x) ? 1 : (assert(0), 0)) - #define NEVER(x) ((x) ? (assert(0), 1) : 0) -#elif APLWC_BUILD_TYPE_RELEASE - #define ALWAYS(x) (X) - #define NEVER(X) (X) -#elif APLWC_BUILD_TYPE_COVERAGE - #define ALWAYS(x) (1) - #define NEVER(x) (0) -#endif - #include <assert.h> #include <stdalign.h> #include <stdbool.h> |