ulib/3party/rpc_core/test/assert_def.h
tqcq c3b5a29da2
All checks were successful
rpcrypto-build / build (Debug, hisiv510.toolchain.cmake) (push) Successful in 1m6s
rpcrypto-build / build (Debug, himix200.toolchain.cmake) (push) Successful in 1m9s
rpcrypto-build / build (Release, himix200.toolchain.cmake) (push) Successful in 1m17s
rpcrypto-build / build (Release, hisiv510.toolchain.cmake) (push) Successful in 1m22s
linux-hisiv500-gcc / linux-gcc-hisiv500 (push) Successful in 1m39s
linux-mips64-gcc / linux-gcc-mips64el (push) Successful in 1m48s
linux-x64-gcc / linux-gcc (push) Successful in 2m3s
feat add rpc_core
2024-01-21 16:05:01 +08:00

13 lines
274 B
C

#pragma once
#include <cstdio>
#include <cstdlib>
// clang-format off
#define __ASSERT(e, file, line) \
((void)printf ("%s:%d: failed assertion `%s'\n", file, line, e), abort())
#define ASSERT(e) \
((void) ((e) ? ((void)0) : __ASSERT (#e, __FILE__, __LINE__)))