Move os_*.odin files to os/

This commit is contained in:
gingerBill
2018-03-04 11:38:49 +00:00
parent 6db95b554f
commit f4cf88c2ca
6 changed files with 22 additions and 23 deletions
+2 -2
View File
@@ -38,8 +38,8 @@ slice_to_bytes :: proc "contextless" (slice: $E/[]$T) -> []byte {
}
ptr_to_bytes :: proc "contextless" (ptr: ^$T, len := 1) -> []byte {
assert(len >= 0);
return transmute([]byte)raw.Slice{ptr, len*size_of(T)};
assert(len >= 0);
return transmute([]byte)raw.Slice{ptr, len*size_of(T)};
}
any_to_bytes :: proc "contextless" (val: any) -> []byte {