diff options
| author | gingerBill <bill@gingerbill.org> | 2024-07-14 11:56:04 +0100 |
|---|---|---|
| committer | gingerBill <bill@gingerbill.org> | 2024-07-14 11:56:04 +0100 |
| commit | c7bd9547529a4957e56c7302c5eaca650258ecdc (patch) | |
| tree | e533ec892b96f3b842ea79351eb7dc2f7e2964f3 /vendor/raylib | |
| parent | edc793d7c123a38826860ef72684308902a7012c (diff) | |
Add more uses of `#no_capture`
Diffstat (limited to 'vendor/raylib')
| -rw-r--r-- | vendor/raylib/raylib.odin | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/vendor/raylib/raylib.odin b/vendor/raylib/raylib.odin index 3d1b74058..c2995ba36 100644 --- a/vendor/raylib/raylib.odin +++ b/vendor/raylib/raylib.odin @@ -1667,7 +1667,7 @@ IsGestureDetected :: proc "c" (gesture: Gesture) -> bool { // Text formatting with variables (sprintf style) -TextFormat :: proc(text: cstring, args: ..any) -> cstring { +TextFormat :: proc(text: cstring, #no_capture args: ..any) -> cstring { @static buffers: [MAX_TEXTFORMAT_BUFFERS][MAX_TEXT_BUFFER_LENGTH]byte @static index: u32 @@ -1683,7 +1683,7 @@ TextFormat :: proc(text: cstring, args: ..any) -> cstring { } // Text formatting with variables (sprintf style) and allocates (must be freed with 'MemFree') -TextFormatAlloc :: proc(text: cstring, args: ..any) -> cstring { +TextFormatAlloc :: proc(text: cstring, #no_capture args: ..any) -> cstring { str := fmt.tprintf(string(text), ..args) return strings.clone_to_cstring(str, MemAllocator()) } |