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/ray.c | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'src/ray.c') diff --git a/src/ray.c b/src/ray.c index 3050e5a..9fb9023 100644 --- a/src/ray.c +++ b/src/ray.c @@ -292,3 +292,14 @@ ray_post_reload(void *state) TraceLog(LOG_INFO, "post-reload actions done"); } #endif + +#ifdef NDEBUG +static struct disp __ray_disp = { + .init = ray_init, + .display_calc = ray_display_calc, + .read_input = ray_read_input, + .display_res = ray_display_res, + .destroy = ray_destroy +}; +struct disp *ray_disp = &__ray_disp; +#endif -- cgit v1.2.3