summaryrefslogtreecommitdiff
path: root/example.h
diff options
context:
space:
mode:
authorkkard2 <[email protected]>2025-09-14 12:14:31 +0200
committerkkard2 <[email protected]>2025-09-14 12:14:31 +0200
commitd30d4c2c3832c1e4df1d4fb266b04ca4dfdd828b (patch)
treee51489686eef2edf27a7c7e6268d6418478ddec3 /example.h
parenta554485534c83c2ecfa98f8c651ad957358a4034 (diff)
make examples more future proof (like if i want input and stuff)
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