From f9d7cc83105d6cbfe03409c6eddbc039b0d9839c Mon Sep 17 00:00:00 2001 From: KyleMiles Date: Mon, 16 Jul 2018 15:56:28 -0400 Subject: Fix format of strings in python/log.py --- python/generator.cpp | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'python/generator.cpp') diff --git a/python/generator.cpp b/python/generator.cpp index afc77254..39e45aea 100644 --- a/python/generator.cpp +++ b/python/generator.cpp @@ -391,6 +391,16 @@ int main(int argc, char* argv[]) } fprintf(out, "\t]\n"); } + else + { + // As of writing this, only BNLog's have variable instruction lengths, but in an attempt not to break in the future: + if (funcName.compare(0, 6, "_BNLog") == 0) + { + fprintf(out, "def %s(*args):\n", name.c_str()); + fprintf(out, "\treturn %s(*[cstr(arg) for arg in args])\n\n", funcName.c_str()); + continue; + } + } if (stringResult) { -- cgit v1.3.1