Skip to content

Commit

Permalink
Add logging
Browse files Browse the repository at this point in the history
  • Loading branch information
m-kus committed Dec 10, 2019
1 parent a8f287c commit 4a1434d
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
2 changes: 1 addition & 1 deletion src/xfunc/codegen.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ namespace xfift {
bool inline_ref = (func_val->flags & 2);
impl << name << " PROC" << (inline_ref ? "REF" : "") << ":<{\n";
if (name == "main") {
impl << "DEBUGON\n";
impl << " DEBUGON\n";
}
code->generate_code(impl, Stack::_DisableOpt, 1);
impl << "}>\n";
Expand Down
3 changes: 3 additions & 0 deletions src/xfunc/xfunc.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -96,8 +96,11 @@ namespace xfift {
}

if (!script_fif.empty()) {
std::cout << script_fif << std::endl;

XFift fift;
fift.configure();

XResult res = fift.do_interpret(script_fif);
return res.code == 0 ? res.vm_result() : res;
}
Expand Down

0 comments on commit 4a1434d

Please sign in to comment.