Mercurial > hg > CbC > old > CbC_scripts
changeset 18:787278249896
fix meta connection at no arg code segments
author | Kaito Tokumori <e105711@ie.u-ryukyu.ac.jp> |
---|---|
date | Mon, 26 Oct 2015 17:21:08 +0900 |
parents | 77c1716f7aff |
children | e11ec04d2cd8 |
files | meta_connector/meta_connector.py |
diffstat | 1 files changed, 2 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/meta_connector/meta_connector.py Mon Oct 26 17:09:11 2015 +0900 +++ b/meta_connector/meta_connector.py Mon Oct 26 17:21:08 2015 +0900 @@ -64,9 +64,9 @@ file.write("/*-- connected by script */\n") file.write('// '+l) args = l.split('(')[1].rsplit(')')[0].strip() - args = args + ',' if args else '' + args = ', ' + args if args else '' meta_name = 'meta_'+caller_name if meta_search(lines, callee_name) else 'meta' - file.write("goto {0:s}(context, {1:s} {2:s});\n".format(meta_name, args,\ + file.write("goto {0:s}(context{1:s} ,{2:s});\n".format(meta_name, args,\ callee_name.capitalize())) else: file.write(l)