Rename mem.reinterpret to mem.reinterpret_copy

This commit is contained in:
gingerBill
2021-08-20 10:19:30 +01:00
parent b5cdb331b0
commit 2f5edebefa

View File

@@ -245,7 +245,7 @@ context_from_allocator :: proc(a: Allocator) -> type_of(context) {
return context;
}
reinterpret :: proc($T: typeid, ptr: rawptr) -> (value: T) {
reinterpret_copy :: proc($T: typeid, ptr: rawptr) -> (value: T) {
copy(&value, ptr, size_of(T));
return;
}