summaryrefslogtreecommitdiff
path: root/examples/redis-unstable/src/redisassert.h
diff options
context:
space:
mode:
authorMitja Felicijan <mitja.felicijan@gmail.com>2026-01-21 22:52:54 +0100
committerMitja Felicijan <mitja.felicijan@gmail.com>2026-01-21 22:52:54 +0100
commitdcacc00e3750300617ba6e16eb346713f91a783a (patch)
tree38e2d4fb5ed9d119711d4295c6eda4b014af73fd /examples/redis-unstable/src/redisassert.h
parent58dac10aeb8f5a041c46bddbeaf4c7966a99b998 (diff)
downloadcrep-dcacc00e3750300617ba6e16eb346713f91a783a.tar.gz
Remove testing data
Diffstat (limited to 'examples/redis-unstable/src/redisassert.h')
-rw-r--r--examples/redis-unstable/src/redisassert.h35
1 files changed, 0 insertions, 35 deletions
diff --git a/examples/redis-unstable/src/redisassert.h b/examples/redis-unstable/src/redisassert.h
deleted file mode 100644
index 4de8d5c..0000000
--- a/examples/redis-unstable/src/redisassert.h
+++ /dev/null
@@ -1,35 +0,0 @@
-/* redisassert.h -- Drop in replacements assert.h that prints the stack trace
- * in the Redis logs.
- *
- * This file should be included instead of "assert.h" inside libraries used by
- * Redis that are using assertions, so instead of Redis disappearing with
- * SIGABORT, we get the details and stack trace inside the log file.
- *
- * ----------------------------------------------------------------------------
- *
- * Copyright (c) 2006-Present, Redis Ltd.
- * All rights reserved.
- *
- * Licensed under your choice of (a) the Redis Source Available License 2.0
- * (RSALv2); or (b) the Server Side Public License v1 (SSPLv1); or (c) the
- * GNU Affero General Public License v3 (AGPLv3).
- */
-
-#ifndef __REDIS_ASSERT_H__
-#define __REDIS_ASSERT_H__
-
-#include "config.h"
-
-#define assert(_e) (likely((_e))?(void)0 : (_serverAssert(#_e,__FILE__,__LINE__),redis_unreachable()))
-#define panic(...) _serverPanic(__FILE__,__LINE__,__VA_ARGS__),redis_unreachable()
-
-void _serverAssert(const char *estr, const char *file, int line);
-void _serverPanic(const char *file, int line, const char *msg, ...);
-
-#ifdef DEBUG_ASSERTIONS
-#define debugAssert(_e) assert(_e)
-#else
-#define debugAssert(_e) ((void)0)
-#endif
-
-#endif