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:
@@ -720,7 +720,7 @@ autoselect_pbm_format_from_image :: proc(img: ^Image, prefer_binary := true, for
|
||||
}
|
||||
|
||||
@(init, private)
|
||||
_register :: proc() {
|
||||
_register :: proc "contextless" () {
|
||||
loader :: proc(data: []byte, options: image.Options, allocator: mem.Allocator) -> (img: ^Image, err: Error) {
|
||||
return load_from_bytes(data, allocator)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user