Require @(init) and @(fini) to be proc "contextless" ()
This commit is contained in:
1 parent
3194fda8f3
commit
7642e0a0e0
47 files changed
+170
-102
No files matched your search
@@ -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