mirror of https://github.com/bjornbytes/lovr.git
util: Add BREAK;
This commit is contained in:
parent
e820e40e08
commit
3ff13edfb6
|
@ -25,6 +25,7 @@
|
||||||
#define ALIGN(p, n) (((uintptr_t) (p) + (n - 1)) & ~(n - 1))
|
#define ALIGN(p, n) (((uintptr_t) (p) + (n - 1)) & ~(n - 1))
|
||||||
#define COUNTOF(x) (sizeof(x) / sizeof(x[0]))
|
#define COUNTOF(x) (sizeof(x) / sizeof(x[0]))
|
||||||
#define CHECK_SIZEOF(T) int(*_o)[sizeof(T)]=1
|
#define CHECK_SIZEOF(T) int(*_o)[sizeof(T)]=1
|
||||||
|
#define BREAK() __asm("int $3")
|
||||||
|
|
||||||
// Error handling
|
// Error handling
|
||||||
typedef void errorFn(void*, const char*, va_list);
|
typedef void errorFn(void*, const char*, va_list);
|
||||||
|
|
Loading…
Reference in New Issue