mirror of
https://github.com/odin-lang/Odin.git
synced 2026-02-20 01:48:21 +00:00
Merge branch 'odin-lang:master' into raylib5
This commit is contained in:
@@ -51,7 +51,7 @@ arena_init_growing :: proc(arena: ^Arena, reserved: uint = DEFAULT_ARENA_GROWING
|
||||
// Initialization of an `Arena` to be a `.Static` variant.
|
||||
// A static arena contains a single `Memory_Block` allocated with virtual memory.
|
||||
@(require_results)
|
||||
arena_init_static :: proc(arena: ^Arena, reserved: uint, commit_size: uint = DEFAULT_ARENA_STATIC_COMMIT_SIZE) -> (err: Allocator_Error) {
|
||||
arena_init_static :: proc(arena: ^Arena, reserved: uint = DEFAULT_ARENA_STATIC_RESERVE_SIZE, commit_size: uint = DEFAULT_ARENA_STATIC_COMMIT_SIZE) -> (err: Allocator_Error) {
|
||||
arena.kind = .Static
|
||||
arena.curr_block = memory_block_alloc(commit_size, reserved, {}) or_return
|
||||
arena.total_used = 0
|
||||
|
||||
@@ -885,6 +885,7 @@ Splits a string into parts based on a separator. If n < count of seperators, the
|
||||
Inputs:
|
||||
- s: The string to split.
|
||||
- sep: The separator string used to split the input string.
|
||||
- n: The maximum amount of parts to split the string into.
|
||||
- allocator: (default is context.allocator)
|
||||
|
||||
Returns:
|
||||
|
||||
Reference in New Issue
Block a user