consts in raylib.zr

This commit is contained in:
2026-02-12 14:10:42 +01:00
parent d0a4fb7293
commit af0ae49abe
4 changed files with 18 additions and 8 deletions

View File

@@ -1,3 +1,5 @@
// absolutely not production-ready
func crypto.rotl32[x: i64, r: i64] : i64
return ((x << r) | (x >> (32 - r))) & 0xffffffff

View File

@@ -6,7 +6,7 @@ extern gethostbyname
func dbg.panic[msg: str] : void
io.print("PANIC: ")
io.println(msg)
0/0 // crashes program which is kinda better since you get a gdb backtrace
(0 / 0) // crashes program which is kinda better since you get a gdb backtrace
os.exit(1)
func mem.alloc[x: i64] : ptr