diff options
author | Henrique Alves <henrique.alves@itsjungle.xyz> | 2024-04-22 19:56:32 +0300 |
---|---|---|
committer | Henrique Alves <henrique.alves@itsjungle.xyz> | 2024-04-22 19:56:32 +0300 |
commit | 4e6f31d4c443ff2e69366261e4ff48776011c42a (patch) | |
tree | c6832c1e2d8024ef05fb81c75ee92b986512a9a7 /sources/text.h | |
parent | cef05d32d6a8e38d8d84a5a7efac4494b00f1ce9 (diff) | |
download | gamejam-slgj-2024-4e6f31d4c443ff2e69366261e4ff48776011c42a.tar.gz gamejam-slgj-2024-4e6f31d4c443ff2e69366261e4ff48776011c42a.tar.bz2 gamejam-slgj-2024-4e6f31d4c443ff2e69366261e4ff48776011c42a.zip |
MVP of bug
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); } |