From b01234d27ec05707c8a1406341380545d5c4540f Mon Sep 17 00:00:00 2001 From: blueloveTH Date: Mon, 12 Aug 2024 13:37:09 +0800 Subject: [PATCH] ... --- web/index.html | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/web/index.html b/web/index.html index fc127744..3dc3f6b2 100644 --- a/web/index.html +++ b/web/index.html @@ -259,14 +259,15 @@ DEALINGS IN THE SOFTWARE. var Module = { onRuntimeInitialized: function () { Module.ccall('py_initialize', null, [], []); + console.log("py_initialize() called"); }, print: function (text) { - console.log(text); code_output.innerText += text + '\n'; }, onabort: function (what) { code_output.innerText += 'Aborted: ' + what + '\n'; Module.ccall('py_finalize', null, [], []); + console.log("py_finalize() called"); } }; @@ -294,6 +295,7 @@ DEALINGS IN THE SOFTWARE. 'py_exec', 'boolean', ['string', 'string', 'number', 'number'], [source, 'main.py', 0, 0] ); + console.log("py_exec() called"); if (!ok) { Module.ccall('py_printexc', null, [], []); Module.ccall('py_clearexc', null, ['number'], [0]);