From ab50d908ba2eae14929a07341b1b716cde681c1c Mon Sep 17 00:00:00 2001 From: Onur Gündüz Date: Sat, 30 May 2026 04:07:37 +0200 Subject: server: implement HTTP API with libae integration --- deps/ae/redisassert.h | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 deps/ae/redisassert.h (limited to 'deps/ae/redisassert.h') 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 +#include +#include + +/* 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 -- cgit v1.3.1