Created GB_CONTEXT_SAFETY (markdown)

Lior Halphon 2024-11-30 22:31:48 +02:00
parent 1aed55fe13
commit 73eb1527b4
1 changed files with 13 additions and 0 deletions

13
GB_CONTEXT_SAFETY.md Normal file

@ -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.