aboutsummaryrefslogtreecommitdiff
path: root/src/tui.c
diff options
context:
space:
mode:
authorTristan Riehs <tristan.riehs@bordeaux-inp.fr>2024-06-30 17:00:48 +0900
committerTristan Riehs <tristan.riehs@bordeaux-inp.fr>2024-06-30 17:00:48 +0900
commitc48f0176412f2c15fbb3cbc6052550959f581da9 (patch)
tree8d637080281f0b50f3a303e5a62ccb44e2201b21 /src/tui.c
parent46e6de294243e8dc593551bfe8c0e7090d03a159 (diff)
Add support for release compilation modeHEADmaster
Displays are not shared libraries, but object files that are part of the final executable.
Diffstat (limited to 'src/tui.c')
-rw-r--r--src/tui.c11
1 files changed, 11 insertions, 0 deletions
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