summaryrefslogtreecommitdiff
path: root/py/showbc.c
diff options
context:
space:
mode:
authorDamien George <damien.p.george@gmail.com>2014-03-26 23:09:14 +0000
committerDamien George <damien.p.george@gmail.com>2014-03-26 23:09:14 +0000
commitd6f94340916bc5eabcf51d7afea523885adce818 (patch)
treebc59b126181dcf37868b72f5edbb6e74c1b0c1f3 /py/showbc.c
parenteed6f26bed82969e3c9954159b17fe2733f4cb42 (diff)
parent2447a5b582503b70936681702062704e2e9f44d3 (diff)
Merge pull request #381 from pfalcon/closure-defargs
py: Support closures with default args.
Diffstat (limited to 'py/showbc.c')
-rw-r--r--py/showbc.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/py/showbc.c b/py/showbc.c
index 9bdf811d9..eb743bd29 100644
--- a/py/showbc.c
+++ b/py/showbc.c
@@ -371,6 +371,11 @@ void mp_byte_code_print(const byte *ip, int len) {
printf("MAKE_CLOSURE " UINT_FMT, unum);
break;
+ case MP_BC_MAKE_CLOSURE_DEFARGS:
+ DECODE_UINT;
+ printf("MAKE_CLOSURE_DEFARGS " UINT_FMT, unum);
+ break;
+
case MP_BC_CALL_FUNCTION:
DECODE_UINT;
printf("CALL_FUNCTION n=" UINT_FMT " nkw=" UINT_FMT, unum & 0xff, (unum >> 8) & 0xff);