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 from
5 * ../../src/c). The bytecode WASM runtime calls the weak sigil_wasm_app_register
6 * hook after the browser bridges; we forward it to sigil-graphics' module init
7 * so (sigil graphics) resolves in the browser exactly as it does natively.
8 */
9#include <sigil/sigil.h>
11extern void sigil__init_sigil_graphics_module(SigilVM *vm);
13void sigil_wasm_app_register(SigilVM *vm)
15 sigil__init_sigil_graphics_module(vm);