Add intrinsics.type_field_index_of

This commit is contained in:
gingerBill
2020-10-15 16:12:47 +01:00
parent f8e697dbbb
commit 5a28a7e0f5
4 changed files with 51 additions and 3 deletions
+2 -3
View File
@@ -323,9 +323,6 @@ Context :: struct {
}
@thread_local global_default_temp_allocator_data: Default_Temp_Allocator;
Raw_String :: struct {
data: ^byte,
len: int,
@@ -524,6 +521,8 @@ __init_context :: proc "contextless" (c: ^Context) {
c.logger.data = nil;
}
@thread_local global_default_temp_allocator_data: Default_Temp_Allocator;
@builtin
init_global_temporary_allocator :: proc(size: int, backup_allocator := context.allocator) {
default_temp_allocator_init(&global_default_temp_allocator_data, size, backup_allocator);