Created
December 3, 2015 23:53
-
-
Save oskar-szulc/22575b3ba9401a4f5b2e to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//Unity callback: | |
typedef void (*FuncPtr)( const char * ); | |
static FuncPtr Result = 0; | |
//---- | |
void workerCallback(char* data, int size, void* arg) | |
{ | |
std::string resultData = std::string(data); | |
emscripten_log(EM_LOG_CONSOLE, result); | |
Result(resultData.c_str()); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment