AtlatestRepositorysigil-graphics
sigil-graphics / tree / examples / web-sprite / src / capp-register.c
1
/*2
* app-register.c — register this web app's own native modules.3
*4
* The web build reuses sigil-graphics' sokol natives (compiled from5
* ../../src/c). The bytecode WASM runtime calls the weak sigil_wasm_app_register6
* hook after the browser bridges; we forward it to sigil-graphics' module init7
* so (sigil graphics) resolves in the browser exactly as it does natively.8
*/9
#include <sigil/sigil.h>11
extern void sigil__init_sigil_graphics_module(SigilVM *vm);13
void sigil_wasm_app_register(SigilVM *vm)14
{15
sigil__init_sigil_graphics_module(vm);16
}