platform_wasm.h (333B)
1 #define PLATFORM_SCR_WIDTH 600 2 #define PLATFORM_SCR_HEIGHT 600 3 4 PLATFORM_READ_ENTIRE_FILE(wasm_read_entire_file); 5 PLATFORM_PRINT(wasm_print); 6 PLATFORM_MEMORY_FREE(wasm_memory_free); 7 8 // Functions implemented in the JS loader 9 char *js_read_entire_file(i32 file_path, i32 name_len, char *file_data); 10 int js_print(i32 string, i32 len);