diff options
| author | gingerBill <bill@gingerbill.org> | 2024-07-14 12:19:47 +0100 |
|---|---|---|
| committer | gingerBill <bill@gingerbill.org> | 2024-07-14 12:19:47 +0100 |
| commit | 8642d719f0ece3625d535d47b41ff4d35072f47f (patch) | |
| tree | aec3708e44e3fe7085dea40b112aa4db08497f31 /vendor/raylib | |
| parent | 891cf54b5c56bd31bcfdac14f0b72d489999bffc (diff) | |
Imply `#no_capture` to all variadic parameters
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 c2995ba36..0dd3bd4fd 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, #no_capture args: ..any) -> cstring { +TextFormat :: proc(text: cstring, args: ..any) -> cstring { @static buffers: [MAX_TEXTFORMAT_BUFFERS][MAX_TEXT_BUFFER_LENGTH]byte @static index: u32 @@ -1683,7 +1683,7 @@ TextFormat :: proc(text: cstring, #no_capture args: ..any) -> cstring { } // Text formatting with variables (sprintf style) and allocates (must be freed with 'MemFree') -TextFormatAlloc :: proc(text: cstring, #no_capture args: ..any) -> cstring { +TextFormatAlloc :: proc(text: cstring, args: ..any) -> cstring { str := fmt.tprintf(string(text), ..args) return strings.clone_to_cstring(str, MemAllocator()) } |