projects
/
onyx.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
8147854
)
changed: closures use temp allocator
author
Brendan Hansen
<brendan.f.hansen@gmail.com>
Thu, 20 Apr 2023 14:58:06 +0000
(09:58 -0500)
committer
Brendan Hansen
<brendan.f.hansen@gmail.com>
Thu, 20 Apr 2023 14:58:06 +0000
(09:58 -0500)
core/builtin.onyx
patch
|
blob
|
history
diff --git
a/core/builtin.onyx
b/core/builtin.onyx
index 1cea27ae23da133bd3bfcb9e3f2033957475f7e3..ef4354a19469da9be0edff81f2008b0357bba05f 100644
(file)
--- a/
core/builtin.onyx
+++ b/
core/builtin.onyx
@@
-474,7
+474,7
@@
__implicit_bool_cast :: #match -> bool {}
changed to a configurable way, but for now it simply allocates out of the heap allocator.
"""
__closure_block_allocate :: (size: i32) -> rawptr {
- return raw_alloc(context.allocator, size);
+ return raw_alloc(context.
temp_
allocator, size);
}