diff options
| author | gingerBill <gingerBill@users.noreply.github.com> | 2026-02-02 10:06:44 +0000 |
|---|---|---|
| committer | gingerBill <gingerBill@users.noreply.github.com> | 2026-02-02 10:06:44 +0000 |
| commit | f45ca2d03e46886d52641b6f40763e0c95ebc3c8 (patch) | |
| tree | ddaed3b6a77776943e974e9fded52f8f05542fed /core/sys/windows/user32.odin | |
| parent | 4d938862a21d12a2a203175e06c84c4c17b0e7f7 (diff) | |
Use `contextless`
Diffstat (limited to 'core/sys/windows/user32.odin')
| -rw-r--r-- | core/sys/windows/user32.odin | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/core/sys/windows/user32.odin b/core/sys/windows/user32.odin index beee65ee6..5d3f948d7 100644 --- a/core/sys/windows/user32.odin +++ b/core/sys/windows/user32.odin @@ -412,11 +412,13 @@ MAKEINTRESOURCEW :: #force_inline proc "contextless" (#any_int i: int) -> LPWSTR return cast(LPWSTR)uintptr(WORD(i)) } -RAWINPUT_ALIGN :: proc(x: uintptr) -> uintptr { +@(require_results) +RAWINPUT_ALIGN :: proc "contextless" (x: uintptr) -> uintptr { return (x + size_of(uintptr) - 1) & ~uintptr(size_of(uintptr) - 1) } -NEXTRAWINPUTBLOCK :: proc(ptr: ^RAWINPUT) -> ^RAWINPUT { +@(require_results) +NEXTRAWINPUTBLOCK :: proc "contextless" (ptr: ^RAWINPUT) -> ^RAWINPUT { return cast(^RAWINPUT)RAWINPUT_ALIGN(uintptr(ptr) + uintptr(ptr.header.dwSize)) } |