From c48f0176412f2c15fbb3cbc6052550959f581da9 Mon Sep 17 00:00:00 2001 From: Tristan Riehs Date: Sun, 30 Jun 2024 17:00:48 +0900 Subject: Add support for release compilation mode Displays are not shared libraries, but object files that are part of the final executable. --- src/tui.c | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'src/tui.c') diff --git a/src/tui.c b/src/tui.c index e02429f..6e15591 100644 --- a/src/tui.c +++ b/src/tui.c @@ -171,3 +171,14 @@ tui_post_reload(void *state) redraw(); } #endif + +#ifdef NDEBUG +static struct disp __tui_disp = { + .init = tui_init, + .display_calc = tui_display_calc, + .read_input = tui_read_input, + .display_res = tui_display_res, + .destroy = tui_destroy +}; +struct disp *tui_disp = &__tui_disp; +#endif -- cgit v1.2.3