Marvin Irwin

0

votes
0

answer
3

views

How can I import Emscripten generated .wasm/js files in files created with create-react-app

I have a library I can successfully build & run with the Emscripten generated .html files. I'd like to use it with React now, however, I get a MIME type error` which I can't fix. Here are the steps I take to generate the React app and .wasm files npx create-react-app stackoverflow DEST=stackoverfl...
Marvin Irwin
1

votes
2

answer
21

views

Why define a function in a source file, then declare it in another before using its reference?

I found the following pattern in the DOOM source and I'm not sure what to make of it. The definition .c file The declaration and use .c file enemy.c // A nice definition, but there is no corresponding header file, kind of weird void A_Pain (mobj_t* actor) { if (actor->info->painsound) S_StartSound (...
Marvin Irwin