Fix bunch of bugs, endianess of numbers seems to befucked, i have no idea why

This commit is contained in:
2026-02-12 23:26:59 +02:00
parent 96f8aa3bbb
commit dd1b6af259
17 changed files with 208 additions and 68 deletions

View File

@@ -1,6 +1,18 @@
// include "std/core.mcl";
include "beaker.mcl";
include "std/lib/beaker.mcl";
fn hello_world_handler(params: &UrlParams) -> i32 {
send_response(c"Hello, World!");
return 0;
}
fn main() -> i32 {
//puts("owo\n");
set_handler(c"/", hello_world_handler);
let result = beaker_run(c"127.0.0.1", 0xff00000000000000 as i32);
if (!(result as bool)) {
eputs("[APP] Error: Beaker server failed to start.\n");
}
}