Commit: c099e818540b0a0fe2efee4db39b7e027eb1590a
Parent: fe52568043b82e6b31bc94440cd5d45f37efcf39
Author: Randy Palamar
Date: Wed, 12 Jun 2024 18:52:58 -0600
declare do_colour_pick static when not debugging
Diffstat:
2 files changed, 3 insertions(+), 1 deletion(-)
diff --git a/colourpicker.c b/colourpicker.c
@@ -412,7 +412,7 @@ do_colour_stack(ColourPickerCtx *ctx, Rect sa, f32 dt)
}
}
-void
+DEBUG_EXPORT void
do_colour_picker(ColourPickerCtx *ctx)
{
ClearBackground(ctx->bg);
diff --git a/util.c b/util.c
@@ -7,8 +7,10 @@
#ifdef _DEBUG
#define ASSERT(c) do { if (!(c)) asm("int3; nop"); } while (0);
+#define DEBUG_EXPORT
#else
#define ASSERT(c)
+#define DEBUG_EXPORT static
#endif
typedef int32_t i32;