Allocators. Rename of "optenum" to fault. Memcpy and memset added. Cleanup of declaration use.

This commit is contained in:
Christoffer Lerno
2022-04-06 12:22:19 +02:00
committed by Christoffer Lerno
parent 8743223dd6
commit b99db4be24
21 changed files with 378 additions and 548 deletions

View File

@@ -1,13 +1,12 @@
module test;
import std::time;
import std::io;
public macro timeit(#call)
{
Time t = time::current();
typeof(#call) result = #call;
TimeDiff diff = time::current() - t;
io::printf("'%s' took %f ms\n", $stringify(#call), diff * 1000);
libc::printf("'%s' took %f ms\n", $stringify(#call), diff * 1000);
return result;
}