summaryrefslogtreecommitdiff
path: root/example.h
diff options
context:
space:
mode:
Diffstat (limited to 'example.h')
-rw-r--r--example.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/example.h b/example.h
index 9769c84..5c34ea1 100644
--- a/example.h
+++ b/example.h
@@ -1,2 +1,11 @@
void init();
void draw_frame(sponge_Texture c);
+
+
+#ifdef SPONGE_EXAMPLE_IMPLEMENTATION
+
+#ifndef SPONGE_EXAMPLE_INIT_DEFINED
+void init() {}
+#endif // SPONGE_EXAMPLE_INIT_DEFINED
+
+#endif // SPONGE_EXAMPLE_IMPLEMENTATION