Mercurial > hg > Members > anatofuz > MoarVM
changeset 51:2cba07b40fd1
add cbc_trace mode
author | anatofuz |
---|---|
date | Mon, 10 Dec 2018 14:03:01 +0900 |
parents | a28c50b4c875 |
children | 0eaa19833fe4 |
files | src/main.c |
diffstat | 1 files changed, 10 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/src/main.c Mon Dec 10 08:59:08 2018 +0900 +++ b/src/main.c Mon Dec 10 14:03:01 2018 +0900 @@ -52,7 +52,8 @@ OPT_EXECNAME, OPT_LIBPATH, OPT_DEBUGPORT, - OPT_CBC + OPT_CBC, + OPT_CBC_TRACE }; static const char *const FLAGS[] = { @@ -132,11 +133,14 @@ return OPT_DEBUGPORT; else if (starts_with(arg, "--cbc")) return OPT_CBC; + else if (starts_with(arg, "--cbc-trace")) + return OPT_CBC_TRACE; else return UNKNOWN_FLAG; } extern int use_cbc; +extern int cbc_trace; #ifndef _WIN32 int main(int argc, char *argv[]) @@ -179,6 +183,11 @@ use_cbc = 1; continue; + case OPT_CBC_TRACE: + use_cbc = 1; + cbc_trace = 1; + continue; + case FLAG_FULL_CLEANUP: full_cleanup = 1; continue;