summaryrefslogtreecommitdiff
path: root/src/shared/include/assert.h
blob: 7adf297d875c74d4b90860ddb18f2b810d4478e2 (plain)
1
2
3
#pragma once
#define assert(stmt) do { if (!(stmt)) __badassert(__func__, __FILE__, __LINE__); } while (0)
_Noreturn void __badassert(const char *func, const char *file, int line);