mirror of
https://github.com/Ed94/Odin.git
synced 2026-08-05 07:08:48 +00:00
Make expect parameter polymorphic
This commit is contained in:
@@ -73,7 +73,7 @@ prefetch_write_instruction :: proc(address: rawptr, #const locality: i32 /* 0..=
|
|||||||
prefetch_write_data :: proc(address: rawptr, #const locality: i32 /* 0..=3 */) ---
|
prefetch_write_data :: proc(address: rawptr, #const locality: i32 /* 0..=3 */) ---
|
||||||
|
|
||||||
// Compiler Hints
|
// Compiler Hints
|
||||||
expect :: proc(val, expected_val: T) -> T ---
|
expect :: proc(val, expected_val: $T) -> T ---
|
||||||
|
|
||||||
// Linux and Darwin Only
|
// Linux and Darwin Only
|
||||||
syscall :: proc(id: uintptr, args: ..uintptr) -> uintptr ---
|
syscall :: proc(id: uintptr, args: ..uintptr) -> uintptr ---
|
||||||
|
|||||||
Reference in New Issue
Block a user