Made the initial whitespace parser

This commit is contained in:
2024-03-02 18:19:27 -05:00
parent 035c726a71
commit b0adfbf5f5
11 changed files with 442 additions and 15 deletions

View File

@ -11,7 +11,8 @@ debug_draw_text :: proc( content : string, pos : Vec2, size : f32, color : rl.Co
if len( content ) == 0 {
return
}
runes := to_runes( content, context.temp_allocator )
runes, alloc_error := to_runes( content, context.temp_allocator )
verify( alloc_error != AllocatorError.None, "Failed to temp allocate runes" )
font := font
if font.key == Font_Default.key {
@ -38,7 +39,8 @@ debug_draw_text_world :: proc( content : string, pos : Vec2, size : f32, color :
if len( content ) == 0 {
return
}
runes := to_runes( content, context.temp_allocator )
runes, alloc_error := to_runes( content, context.temp_allocator )
verify( alloc_error != AllocatorError.None, "Failed to temp allocate runes" )
font := font
if font.key == Font_Default.key {