aboutsummaryrefslogtreecommitdiff
path: root/core/strings/intern.odin
diff options
context:
space:
mode:
authorPix <ben.dennis@hyprfire.com>2023-08-15 12:30:50 +0800
committerPix <ben.dennis@hyprfire.com>2023-08-15 12:30:50 +0800
commit5ce541e9efc1b02ad077aa7e87035e4dd6bf8c5a (patch)
tree6d0dec75038da897ce69671e328767a0dc4ae660 /core/strings/intern.odin
parent0cf9c22033a28283feecbd8f9d4cc0720be7d5b4 (diff)
Intern add location to init.
Diffstat (limited to 'core/strings/intern.odin')
-rw-r--r--core/strings/intern.odin4
1 files changed, 2 insertions, 2 deletions
diff --git a/core/strings/intern.odin b/core/strings/intern.odin
index 73f91d4d4..812307b2e 100644
--- a/core/strings/intern.odin
+++ b/core/strings/intern.odin
@@ -34,9 +34,9 @@ Inputs:
Returns:
- err: An allocator error if one occured, `nil` otherwise
*/
-intern_init :: proc(m: ^Intern, allocator := context.allocator, map_allocator := context.allocator) -> (err: mem.Allocator_Error) {
+intern_init :: proc(m: ^Intern, allocator := context.allocator, map_allocator := context.allocator, loc := #caller_location) -> (err: mem.Allocator_Error) {
m.allocator = allocator
- m.entries = make(map[string]^Intern_Entry, 16, map_allocator) or_return
+ m.entries = make(map[string]^Intern_Entry, 16, map_allocator, loc) or_return
return nil
}
/*