mirror of
https://github.com/Ed94/Odin.git
synced 2026-08-05 15:18:49 +00:00
@@ -853,7 +853,7 @@ implicit_context_system :: proc() {
|
|||||||
what_a_fool_believes :: proc() {
|
what_a_fool_believes :: proc() {
|
||||||
c := context // this `context` is the same as the parent procedure that it was called from
|
c := context // this `context` is the same as the parent procedure that it was called from
|
||||||
// From this example, context.user_index == 123
|
// From this example, context.user_index == 123
|
||||||
// An context.allocator is assigned to the return value of `my_custom_allocator()`
|
// A context.allocator is assigned to the return value of `my_custom_allocator()`
|
||||||
assert(context.user_index == 123)
|
assert(context.user_index == 123)
|
||||||
|
|
||||||
// The memory management procedure use the `context.allocator` by
|
// The memory management procedure use the `context.allocator` by
|
||||||
|
|||||||
Reference in New Issue
Block a user