diff options
| author | gingerBill <gingerBill@users.noreply.github.com> | 2025-08-08 12:33:34 +0100 |
|---|---|---|
| committer | gingerBill <gingerBill@users.noreply.github.com> | 2025-08-08 12:33:34 +0100 |
| commit | d381d0ece4b9cd5fcf454fbd7ca79969d2b76cb8 (patch) | |
| tree | 46744c069541f90aa965b8f6817e999289654512 /core | |
| parent | d3f649d244529d93b489140e5c7a1aaff97bedb2 (diff) | |
Fix more procedure to be `contextless`
Diffstat (limited to 'core')
| -rw-r--r-- | core/flags/rtti.odin | 2 | ||||
| -rw-r--r-- | core/sys/posix/stdlib_libc.odin | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/core/flags/rtti.odin b/core/flags/rtti.odin index ce7a23773..058292698 100644 --- a/core/flags/rtti.odin +++ b/core/flags/rtti.odin @@ -38,6 +38,6 @@ Note that only one can be active at a time. Inputs: - setter: The type setter. Pass `nil` to disable any previously set setter. */ -register_type_setter :: proc(setter: Custom_Type_Setter) { +register_type_setter :: proc "contextless" (setter: Custom_Type_Setter) { global_custom_type_setter = setter } diff --git a/core/sys/posix/stdlib_libc.odin b/core/sys/posix/stdlib_libc.odin index e31c51704..966dc1d32 100644 --- a/core/sys/posix/stdlib_libc.odin +++ b/core/sys/posix/stdlib_libc.odin @@ -60,7 +60,7 @@ wctomb :: libc.wctomb mbstowcs :: libc.mbstowcs wcstombs :: libc.wcstombs -free :: #force_inline proc(ptr: $T) where intrinsics.type_is_pointer(T) || intrinsics.type_is_multi_pointer(T) || T == cstring { +free :: #force_inline proc "c" (ptr: $T) where intrinsics.type_is_pointer(T) || intrinsics.type_is_multi_pointer(T) || T == cstring { libc.free(rawptr(ptr)) } |