From d30d4c2c3832c1e4df1d4fb266b04ca4dfdd828b Mon Sep 17 00:00:00 2001 From: kkard2 Date: Sun, 14 Sep 2025 12:14:31 +0200 Subject: make examples more future proof (like if i want input and stuff) --- example.h | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'example.h') 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 -- cgit v1.3.1