http server

This commit is contained in:
2026-07-07 19:40:25 +02:00
parent aea9ce911a
commit 9bbd382e10
13 changed files with 178 additions and 97 deletions

View File

@@ -1,4 +1,11 @@
include "std/str.zr"
include "std/os.zr"
func panic[msg: str] : void
io.printf("PANIC: %s\n", msg)
// for gdb backtrace
_builtin_syscall(SYS_kill, os.getpid(), SIGABRT)
os.exit(1)
func io.printf[..] : void
s := _var_arg(0) as ptr