aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndre Weissflog <floooh@gmail.com>2025-09-15 10:47:32 +0200
committerAndre Weissflog <floooh@gmail.com>2025-09-15 10:47:32 +0200
commit91f9a04b51452c8e00e8a7f0a98ec37f01b0e08a (patch)
tree618fe0d6ff106e7d389ef5de34f425f9c8a1ad1e
parentf8a5ad396b619c9583b3a3dc364ae3f7405f530f (diff)
fix misleading _DEBUG vs NDEBUG doc comments
-rw-r--r--sokol_app.h2
-rw-r--r--sokol_gfx.h7
-rw-r--r--sokol_log.h2
3 files changed, 3 insertions, 8 deletions
diff --git a/sokol_app.h b/sokol_app.h
index 16ea4eeb..34deb46b 100644
--- a/sokol_app.h
+++ b/sokol_app.h
@@ -40,7 +40,7 @@
Optionally define the following to force debug checks and validations
even in release mode:
- SOKOL_DEBUG - by default this is defined if _DEBUG is defined
+ SOKOL_DEBUG - by default this is defined if NDEBUG is not defined
If sokol_app.h is compiled as a DLL, define the following before
including the declaration or implementation:
diff --git a/sokol_gfx.h b/sokol_gfx.h
index b521fe43..6edb4587 100644
--- a/sokol_gfx.h
+++ b/sokol_gfx.h
@@ -56,15 +56,10 @@
On Windows, SOKOL_DLL will define SOKOL_GFX_API_DECL as __declspec(dllexport)
or __declspec(dllimport) as needed.
- If you want to compile without deprecated structs and functions,
- define:
-
- SOKOL_NO_DEPRECATED
-
Optionally define the following to force debug checks and validations
even in release mode:
- SOKOL_DEBUG - by default this is defined if _DEBUG is defined
+ SOKOL_DEBUG - by default this is defined if NDEBUG is not defined
Link with the following system libraries (note that sokol_app.h has
additional linker requirements):
diff --git a/sokol_log.h b/sokol_log.h
index 0eef3a98..081ea0de 100644
--- a/sokol_log.h
+++ b/sokol_log.h
@@ -25,7 +25,7 @@
Optionally define the following for verbose output:
- SOKOL_DEBUG - by default this is defined if _DEBUG is defined
+ SOKOL_DEBUG - by default this is defined if NDEBUG is not defined
OVERVIEW