mirror of
https://github.com/odin-lang/Odin.git
synced 2026-04-22 14:25:21 +00:00
Fix more procedure to be contextless
This commit is contained in:
@@ -17,7 +17,7 @@ Custom_Data :: struct {
|
||||
}
|
||||
|
||||
@(init)
|
||||
init_custom_type_setter :: proc() {
|
||||
init_custom_type_setter :: proc "contextless" () {
|
||||
// NOTE: This is done here so it can be out of the flow of the
|
||||
// multi-threaded test runner, to prevent any data races that could be
|
||||
// reported by using `-sanitize:thread`.
|
||||
|
||||
@@ -2,10 +2,10 @@ package tests_core
|
||||
|
||||
import rlibc "core:c/libc"
|
||||
|
||||
@(init)
|
||||
@(init="contextless")
|
||||
download_assets :: proc() {
|
||||
if rlibc.system("python3 " + ODIN_ROOT + "tests/core/download_assets.py " + ODIN_ROOT + "tests/core/assets") != 0 {
|
||||
panic("downloading test assets failed!")
|
||||
panic_contextless("downloading test assets failed!")
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user