wasm: support more vendor libraries

Adds support for:
- box2d
- cgltf
- stb image
- stb rect pack
This commit is contained in:
Laytan Laats
2024-09-09 18:49:13 +02:00
parent d783bca297
commit 5ae27c6ebc
45 changed files with 2828 additions and 231 deletions
+15
View File
@@ -0,0 +1,15 @@
package odin_libc
import "base:runtime"
@(require, linkage="strong", link_name="__odin_libc_assert_fail")
__odin_libc_assert_fail :: proc "c" (func: cstring, file: cstring, line: i32, expr: cstring) -> ! {
context = g_ctx
loc := runtime.Source_Code_Location{
file_path = string(file),
line = line,
column = 0,
procedure = string(func),
}
context.assertion_failure_proc("runtime assertion", string(expr), loc)
}