core api redesign
This commit is contained in:
@@ -28,12 +28,11 @@ STACK(app_event_t, 64) wasm_events;
|
||||
b32 wasm_event_failed_to_queue;
|
||||
f64 wasm_last_time = 0;
|
||||
|
||||
void write_to_console(char *string) {
|
||||
i32 len = str_len(string);
|
||||
wasm_write_to_console((isize)string, len);
|
||||
void write_to_console(s8_t string) {
|
||||
wasm_write_to_console((isize)string.str, (i32)string.len);
|
||||
}
|
||||
|
||||
f64 s8_deserial_f64(s8_t string) {
|
||||
f64 f64_from_s8(s8_t string) {
|
||||
return wasm_parse_float((isize)string.str, (i32)string.len);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user