mirror of https://github.com/LIJI32/SameBoy.git
Created GB_CONTEXT_SAFETY (markdown)
parent
1aed55fe13
commit
73eb1527b4
|
@ -0,0 +1,13 @@
|
|||
## Definition
|
||||
|
||||
```c
|
||||
#ifndef NDEBUG
|
||||
#define GB_CONTEXT_SAFETY
|
||||
#endif
|
||||
```
|
||||
|
||||
In `gb.h`
|
||||
|
||||
## Description
|
||||
|
||||
When this macro is defined, SameBoy is built with thread-safety assertions. It is implicitly defined in release builds where `NDEBUG` is not defined.
|
Loading…
Reference in New Issue