aboutsummaryrefslogtreecommitdiff
path: root/sokol_gfx.h
diff options
context:
space:
mode:
authorAndre Weissflog <floooh@gmail.com>2019-03-09 13:50:28 +0100
committerAndre Weissflog <floooh@gmail.com>2019-03-09 13:50:28 +0100
commit7f4df6cd44875ef2b5912592c3c8d0c2401b5660 (patch)
treebed76ed72db8298472341af7ead86f12b8769755 /sokol_gfx.h
parent29ce2f7eedc74f260da2aaa326fbd8b9ce3c20d5 (diff)
add 'included' defines to all sokol headers for better error messages when included are missing
Diffstat (limited to 'sokol_gfx.h')
-rw-r--r--sokol_gfx.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/sokol_gfx.h b/sokol_gfx.h
index d6029c2a..7221143b 100644
--- a/sokol_gfx.h
+++ b/sokol_gfx.h
@@ -406,6 +406,7 @@
3. This notice may not be removed or altered from any source
distribution.
*/
+#define SOKOL_GFX_INCLUDED (1)
#include <stdint.h>
#include <stdbool.h>
@@ -1749,6 +1750,8 @@ SOKOL_API_DECL void sg_apply_uniform_block(sg_shader_stage stage, int ub_index,
/*--- IMPLEMENTATION ---------------------------------------------------------*/
#ifdef SOKOL_IMPL
+#define SOKOL_GFX_IMPL_INCLUDED (1)
+
#if !(defined(SOKOL_GLCORE33)||defined(SOKOL_GLES2)||defined(SOKOL_GLES3)||defined(SOKOL_D3D11)||defined(SOKOL_METAL)||defined(SOKOL_DUMMY_BACKEND))
#error "Please select a backend with SOKOL_GLCORE33, SOKOL_GLES2, SOKOL_GLES3, SOKOL_D3D11, SOKOL_METAL or SOKOL_DUMMY_BACKEND"
#endif