mirror of
https://github.com/Ed94/Odin.git
synced 2026-08-04 14:48:47 +00:00
Replace usage of inline proc with #force_inline proc in the core library
This commit is contained in:
@@ -852,7 +852,7 @@ HIWORD_L :: proc(lParam: Lparam) -> u16 { return u16((u32(lParam) >> 16) & 0xfff
|
||||
LOWORD_W :: proc(wParam: Wparam) -> u16 { return u16(wParam); }
|
||||
LOWORD_L :: proc(lParam: Lparam) -> u16 { return u16(lParam); }
|
||||
|
||||
is_key_down :: inline proc(key: Key_Code) -> bool { return get_async_key_state(i32(key)) < 0; }
|
||||
is_key_down :: #force_inline proc(key: Key_Code) -> bool { return get_async_key_state(i32(key)) < 0; }
|
||||
|
||||
|
||||
|
||||
|
||||
@@ -690,7 +690,7 @@ foreign kernel32 {
|
||||
|
||||
NUMA_NO_PREFERRED_NODE :: 0xffffffff;
|
||||
|
||||
MapViewOfFile2 :: inline proc(
|
||||
MapViewOfFile2 :: #force_inline proc(
|
||||
FileMappingHandle: HANDLE,
|
||||
ProcessHandle: HANDLE,
|
||||
Offset: ULONG64,
|
||||
|
||||
@@ -1,10 +1,10 @@
|
||||
package sys_windows
|
||||
|
||||
LOWORD :: inline proc "contextless" (x: DWORD) -> WORD {
|
||||
LOWORD :: #force_inline proc "contextless" (x: DWORD) -> WORD {
|
||||
return WORD(x & 0xffff);
|
||||
}
|
||||
|
||||
HIWORD :: inline proc "contextless" (x: DWORD) -> WORD {
|
||||
HIWORD :: #force_inline proc "contextless" (x: DWORD) -> WORD {
|
||||
return WORD(x >> 16);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user