getting started on array types

This commit is contained in:
Josh Wolfe
2015-12-07 08:29:19 -07:00
parent 94e61287e7
commit f6eecfe5f4
11 changed files with 116 additions and 21 deletions

View File

@@ -19,3 +19,10 @@ void zig_panic(const char *format, ...) {
va_end(ap);
abort();
}
uint32_t int_hash(int i) {
return *reinterpret_cast<uint32_t*>(&i);
}
bool int_eq(int a, int b) {
return a == b;
}