transmute(type)x; Minor code clean up

This commit is contained in:
Ginger Bill
2017-07-30 14:52:42 +01:00
parent 655931f0ea
commit 62a72f0163
16 changed files with 805 additions and 185 deletions
+1 -2
View File
@@ -149,8 +149,7 @@ aprintf :: proc(fmt: string, args: ...any) -> string {
}
// bprint* procedures return a string that was allocated with the current context
// They must be freed accordingly
// bprint* procedures return a string using a buffer from an array
bprint :: proc(buf: []u8, args: ...any) -> string {
sb := StringBuffer(buf[..0..len(buf)]);
return sbprint(&sb, ...args);