mirror of
https://github.com/Ed94/Odin.git
synced 2026-08-06 07:38:48 +00:00
Require @(init) and @(fini) to be proc "contextless" ()
This commit is contained in:
@@ -1,5 +1,7 @@
|
||||
package sysinfo
|
||||
|
||||
import "base:runtime"
|
||||
|
||||
import "core:strconv"
|
||||
import "core:strings"
|
||||
import "core:sys/unix"
|
||||
@@ -9,7 +11,8 @@ import NS "core:sys/darwin/Foundation"
|
||||
version_string_buf: [1024]u8
|
||||
|
||||
@(init, private)
|
||||
init_platform :: proc() {
|
||||
init_platform :: proc "contextless" () {
|
||||
context = runtime.default_context()
|
||||
ws :: strings.write_string
|
||||
wi :: strings.write_int
|
||||
|
||||
|
||||
Reference in New Issue
Block a user