diff options
| author | Gabriel Schneider <[email protected]> | 2026-08-01 22:44:19 -0300 |
|---|---|---|
| committer | Gabriel Schneider <[email protected]> | 2026-08-10 09:17:07 -0300 |
| commit | d59397d4146ffa23adbbe6dc99c64ebb22a93b2d (patch) | |
| tree | a06984bf172a6c894c1586d58aad02ec302b6c2d /src/web/libc/include/assert.h | |
| parent | cbcdf01764e2e144a821643c3a8e9a5ad39eda2e (diff) | |
| download | pardes-d59397d4146ffa23adbbe6dc99c64ebb22a93b2d.tar.gz pardes-d59397d4146ffa23adbbe6dc99c64ebb22a93b2d.zip | |
add vanilla DOM web backend
Diffstat (limited to 'src/web/libc/include/assert.h')
| -rw-r--r-- | src/web/libc/include/assert.h | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/src/web/libc/include/assert.h b/src/web/libc/include/assert.h new file mode 100644 index 00000000..fd018947 --- /dev/null +++ b/src/web/libc/include/assert.h @@ -0,0 +1,14 @@ +#ifndef PARDES_WEB_ASSERT_H +#define PARDES_WEB_ASSERT_H + +#ifndef static_assert +#define static_assert _Static_assert +#endif + +#ifdef NDEBUG +#define assert(expression) ((void)0) +#else +#define assert(expression) ((expression) ? (void)0 : __builtin_trap()) +#endif + +#endif |
