Some bugfixes/added errors, convert most to not use simple_passthrough

This commit is contained in:
Nathan Braswell
2016-04-30 15:38:28 -04:00
parent d126cbf24b
commit 7aa1d9983b
77 changed files with 260 additions and 600 deletions

View File

@@ -1,13 +1,12 @@
fun null<T>(): *T {
return (0) cast *T
}
ext fun malloc(size: int): *void
ext fun malloc(size: ulong): *void
ext fun free(size: *void)
fun null<T>(): *T
return (0) cast *T
fun new<T>(count: int): *T
return (malloc( #sizeof<T> * count )) cast *T
return (malloc( (#sizeof<T> * count ) cast ulong )) cast *T
fun new<T>(): *T
return new<T>(1)