diff options
Diffstat (limited to 'sources/text.h')
-rw-r--r-- | sources/text.h | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/sources/text.h b/sources/text.h index 2f2584a..a44bbce 100644 --- a/sources/text.h +++ b/sources/text.h @@ -1,12 +1,11 @@ #include "raylib.h" #include <libguile.h> +#include <stdio.h> -static void rl_draw_text(SCM text) { - scm_t_string_failed_conversion_handler handler; - char* str = scm_to_stringn(text, NULL, NULL, handler); - DrawText(str, 200, 80, 20, RED); +static void rl_draw_text() { + DrawText("a", 200, 80, 20, RED); //< this line segfaults } static void rl_text_define_methods() { - scm_c_define_gsubr ("rl-draw-text", 1, 0, 0, rl_draw_text); + SCM handler = scm_c_define_gsubr ("rl-draw-text", 0, 0, 0, rl_draw_text); } |