colourpicker

Simple Colour Picker written in C
git clone anongit@rnpnr.xyz:colourpicker.git
Log | Files | Refs | Feed | Submodules | README | LICENSE

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:
Mcolourpicker.c | 2+-
Mutil.c | 2++
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;