Browse Source

Be more consistent with runtime intrinsics usage

gingerBill 4 years ago
parent
commit
9cc366de97
1 changed files with 3 additions and 3 deletions
  1. 3 3
      core/runtime/core.odin

+ 3 - 3
core/runtime/core.odin

@@ -427,7 +427,7 @@ typeid_base :: proc "contextless" (id: typeid) -> typeid {
 	return ti.id;
 	return ti.id;
 }
 }
 typeid_core :: proc "contextless" (id: typeid) -> typeid {
 typeid_core :: proc "contextless" (id: typeid) -> typeid {
-	ti := type_info_base_without_enum(type_info_of(id));
+	ti := type_info_core(type_info_of(id));
 	return ti.id;
 	return ti.id;
 }
 }
 typeid_base_without_enum :: typeid_core;
 typeid_base_without_enum :: typeid_core;
@@ -492,6 +492,6 @@ default_assertion_failure_proc :: proc(prefix, message: string, loc: Source_Code
 		print_string(message);
 		print_string(message);
 	}
 	}
 	print_byte('\n');
 	print_byte('\n');
-	// debug_trap();
-	trap();
+	// intrinsics.debug_trap();
+	intrinsics.trap();
 }
 }