Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions NzScript/NzScript.cpp
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// NzScript.cpp : 此文件包含 "main" 函数。程序执行将在此处开始并结束。
// NzScript.cpp : 此文件包含 "main" 函数。程序执行将在此处开始并结束。
//

#include "ScriptAst.h"
Expand Down Expand Up @@ -371,10 +371,10 @@ int main() {
// std::cout << "\u001b[38;2;255;40;40m" << ex.what() << "\u001b[38;2;255;255;255m\n";
// em.Bytes.clear();
//}
if (!em.Bytes.empty()) {
ir::Interpreter ip(em.Bytes, { em.Strings.begin(), em.Strings.end() });
if (em.Mod) {
ir::Interpreter ip(em.Mod);
try {
ip.Disasm();
// ip.Disasm(); // Disasm might need update to handle Module
std::cout << "-------------------\n";
ip.Run(ctx);
LARGE_INTEGER li2{};
Expand Down
Loading