Init new repository
This commit is contained in:
13
pkgs/libc/assert.lc
Normal file
13
pkgs/libc/assert.lc
Normal file
@@ -0,0 +1,13 @@
|
||||
#`#include <assert.h>`;
|
||||
@foreign assert :: proc(b: bool); @foreign
|
||||
|
||||
#`
|
||||
#if defined(_MSC_VER)
|
||||
#define lc_assertion_debug_break() (__debugbreak(), 0)
|
||||
#else
|
||||
#define lc_assertion_debug_break() (__builtin_trap(), 0)
|
||||
#endif
|
||||
`;
|
||||
|
||||
|
||||
debug_break :: proc(): int; @foreign(lc_assertion_debug_break)
|
||||
Reference in New Issue
Block a user