diff options
| author | Onur Gündüz <ogunduz@gmail.com> | 2026-05-30 04:07:37 +0200 |
|---|---|---|
| committer | Onur Gündüz <ogunduz@gmail.com> | 2026-06-14 08:18:59 +0200 |
| commit | ab50d908ba2eae14929a07341b1b716cde681c1c (patch) | |
| tree | 52e3f1f8cd579eb234185dc3b397ac66cda47cbf /deps/ae/redisassert.h | |
| parent | 46f9e7c67134caf43a04ea5ee3b2325588647e28 (diff) | |
| download | ffwd-ab50d908ba2eae14929a07341b1b716cde681c1c.tar.gz ffwd-ab50d908ba2eae14929a07341b1b716cde681c1c.zip | |
server: implement HTTP API with libae integration
Diffstat (limited to 'deps/ae/redisassert.h')
| -rw-r--r-- | deps/ae/redisassert.h | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/deps/ae/redisassert.h b/deps/ae/redisassert.h new file mode 100644 index 0000000..8abecfb --- /dev/null +++ b/deps/ae/redisassert.h @@ -0,0 +1,18 @@ +/* redisassert.h - simplified assert for standalone ae library */ +#ifndef __REDIS_ASSERT_H__ +#define __REDIS_ASSERT_H__ + +#include <assert.h> +#include <stdio.h> +#include <stdlib.h> + +/* config.h provides redis_unreachable for standalone AE builds. */ + +/* Panic function for error handling */ +#define panic(...) do { \ + fprintf(stderr, "PANIC: " __VA_ARGS__); \ + fprintf(stderr, "\n"); \ + abort(); \ +} while(0) + +#endif |
