kolibrios/programs/develop/ktcc/trunk/libc.obj/include/assert.h
turbocat 99922e4c2c Update skipped files in previous commit
git-svn-id: svn://kolibrios.org@9766 a494cfbc-eb01-0410-851d-a64ba20cac60
2022-04-15 09:11:49 +00:00

14 lines
243 B
C

#ifndef _ASSERT_H_
#define _ASSERT_H_
#include <stddef.h>
#include <stdlib.h>
#ifdef NDEBUG
#define assert(x) (void)0
#else
#define assert(x) ((void)((x) || (__assert_fail(#x, __FILE__, __LINE__, __func__), 0)))
#endif
#endif // _ASSERT_H_