Created
December 4, 2016 05:22
-
-
Save shundroid/523c69ffe7868e36e7965ff7ee57efb6 to your computer and use it in GitHub Desktop.
This file contains 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
<!DOCTYPE html> | |
<html lang="ja"> | |
<head> | |
<meta charset="UTF-8"/> | |
<title></title> | |
<!-- Emscripten で出力されたコード --> | |
<script type="text/javascript" src="a.out.js"></script> | |
<script type="text/javascript"> | |
var fnPointer = Runtime.addFunction(function() { | |
console.log("called!"); | |
}); | |
Module.ccall("set_js_listener", "void", [], [fnPointer]); | |
Module.call_listener(); | |
</script> | |
</head> | |
<body></body> | |
</html> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment