Assert not going through the PAL (#140)

* Assert not going through the PAL

* Make it more difficult to assert() accidentally
This commit is contained in:
Amaury Chamayou
2020-03-11 15:58:44 +00:00
committed by GitHub
parent 3911e2c4b5
commit 8e3efcb1dc
5 changed files with 6 additions and 4 deletions

View File

@@ -5,6 +5,11 @@
#include <iostream>
#include <snmalloc.h>
#ifdef assert
# undef assert
#endif
#define assert please_use_SNMALLOC_ASSERT
void* oe_base;
void* oe_end;
extern "C" const void* __oe_get_heap_base()