Require @(init) and @(fini) to be proc "contextless" ()

This commit is contained in:
gingerBill
2025-08-08 12:10:01 +01:00
parent 3194fda8f3
commit 7642e0a0e0
47 changed files with 170 additions and 102 deletions
+2 -2
View File
@@ -25,7 +25,7 @@ BINDINGS_VERSION :: [3]u32{BINDINGS_VERSION_MAJOR, BINDINGS_VERSION_MIN
BINDINGS_VERSION_STRING :: "0.11.22"
@(init)
version_check :: proc() {
version_check :: proc "contextless" () {
v: [3]u32
version(&v.x, &v.y, &v.z)
if v != BINDINGS_VERSION {
@@ -43,7 +43,7 @@ version_check :: proc() {
n += copy(buf[n:], "and executing `make`")
}
panic(string(buf[:n]))
panic_contextless(string(buf[:n]))
}
}