Browse Source

Rename `mem.reinterpret` to `mem.reinterpret_copy`

gingerBill 4 years ago
parent
commit
2f5edebefa
1 changed files with 1 additions and 1 deletions
  1. 1 1
      core/mem/mem.odin

+ 1 - 1
core/mem/mem.odin

@@ -245,7 +245,7 @@ context_from_allocator :: proc(a: Allocator) -> type_of(context) {
 	return 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));
 	copy(&value, ptr, size_of(T));
 	return;
 	return;
 }
 }