Mercurial > hg > Members > anatofuz > MoarVM
changeset 57:6fa6682eef3b
add origin trace mode
author | anatofuz |
---|---|
date | Fri, 18 Jan 2019 16:30:51 +0900 |
parents | 165f102e3869 |
children | 8d11db1824de |
files | src/main.c |
diffstat | 1 files changed, 8 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/src/main.c Sat Jan 12 19:46:04 2019 +0900 +++ b/src/main.c Fri Jan 18 16:30:51 2019 +0900 @@ -53,7 +53,8 @@ OPT_LIBPATH, OPT_DEBUGPORT, OPT_CBC, - OPT_CBC_TRACE + OPT_CBC_TRACE, + OPT_C_TRACE, }; static const char *const FLAGS[] = { @@ -135,6 +136,8 @@ return OPT_CBC; else if (starts_with(arg, "--trace-cbc")) return OPT_CBC_TRACE; + else if (starts_with(arg, "--original-trace")) + return OPT_C_TRACE; else return UNKNOWN_FLAG; } @@ -188,6 +191,10 @@ cbc_trace = 1; continue; + case OPT_C_TRACE: + cbc_trace = 1; + continue; + case FLAG_FULL_CLEANUP: full_cleanup = 1; continue;