aboutsummaryrefslogtreecommitdiff
path: root/core/bytes
diff options
context:
space:
mode:
authorLaytan Laats <laytanlaats@hotmail.com>2024-09-05 18:00:35 +0200
committerLaytan Laats <laytanlaats@hotmail.com>2024-09-09 18:49:13 +0200
commit5ae27c6ebce707aa6a153cf01ab658c6b1cbdabf (patch)
treee0794aad3550de7a4ca57e453cd55ec4730a47ac /core/bytes
parentd783bca2979db5955885ee6b2a06f20f8a847582 (diff)
wasm: support more vendor libraries
Adds support for: - box2d - cgltf - stb image - stb rect pack
Diffstat (limited to 'core/bytes')
-rw-r--r--core/bytes/bytes.odin4
1 files changed, 2 insertions, 2 deletions
diff --git a/core/bytes/bytes.odin b/core/bytes/bytes.odin
index 45eb44307..c0d25bcce 100644
--- a/core/bytes/bytes.odin
+++ b/core/bytes/bytes.odin
@@ -334,7 +334,7 @@ Inputs:
Returns:
- index: The index of the byte `c`, or -1 if it was not found.
*/
-index_byte :: proc(s: []byte, c: byte) -> (index: int) #no_bounds_check {
+index_byte :: proc "contextless" (s: []byte, c: byte) -> (index: int) #no_bounds_check {
i, l := 0, len(s)
// Guard against small strings. On modern systems, it is ALWAYS
@@ -469,7 +469,7 @@ Inputs:
Returns:
- index: The index of the byte `c`, or -1 if it was not found.
*/
-last_index_byte :: proc(s: []byte, c: byte) -> int #no_bounds_check {
+last_index_byte :: proc "contextless" (s: []byte, c: byte) -> int #no_bounds_check {
i := len(s)
// Guard against small strings. On modern systems, it is ALWAYS