Fix bunch of bugs, endianess of numbers seems to befucked, i have no idea why
This commit is contained in:
16
test2.mcl
16
test2.mcl
@@ -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");
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user