UNPKG
raylib-wasm
Version:
latest (0.0.4)
0.0.4
0.0.3
0.0.1
Make raylib games in JS for the web
raylib-wasm
/
tools
/
get_exports.js
4 lines
(3 loc)
•
200 B
JavaScript
View Raw
1
2
3
4
// this generates the `-sEXPORTED_FUNCTIONS` option for emscripten
import
{ functions }
from
'./api.js'
console
.
log
(
`-sEXPORTED_FUNCTIONS=_malloc,_free,
${functions.map(f =>
`_
${f.name}
`
).join(
','
)}
`
)