diff options
author | Tristan Riehs <tristan.riehs@bordeaux-inp.fr> | 2024-06-30 17:00:48 +0900 |
---|---|---|
committer | Tristan Riehs <tristan.riehs@bordeaux-inp.fr> | 2024-06-30 17:00:48 +0900 |
commit | c48f0176412f2c15fbb3cbc6052550959f581da9 (patch) | |
tree | 8d637080281f0b50f3a303e5a62ccb44e2201b21 /src/cli.c | |
parent | 46e6de294243e8dc593551bfe8c0e7090d03a159 (diff) |
Displays are not shared libraries, but object files that are part of
the final executable.
Diffstat (limited to 'src/cli.c')
-rw-r--r-- | src/cli.c | 12 |
1 files changed, 12 insertions, 0 deletions
@@ -29,6 +29,7 @@ void cli_display_calc(int x, int y) { printf("%d + %d = ", x, y); + fflush(stdout); } int @@ -60,3 +61,14 @@ void cli_destroy(void) {} void *cli_pre_reload(void) {return NULL;} void cli_post_reload(void *) {} #endif + +#ifdef NDEBUG +static struct disp __cli_disp = { + .init = cli_init, + .display_calc = cli_display_calc, + .read_input = cli_read_input, + .display_res = cli_display_res, + .destroy = cli_destroy +}; +struct disp *cli_disp = &__cli_disp; +#endif |