diff options
author | Paul Sokolovsky <pfalcon@users.sourceforge.net> | 2014-05-03 14:10:34 +0300 |
---|---|---|
committer | Paul Sokolovsky <pfalcon@users.sourceforge.net> | 2014-05-03 14:16:11 +0300 |
commit | 418aca976c33db443c2bfed69ff2a38e79320259 (patch) | |
tree | 27b574f105b0e5014b9d5fdf54d15afc7a4cc578 /py/objfun.c | |
parent | 8f472ad5778876d3d8abcfec9459c0a106f629af (diff) |
objclosure, objcell: Print detailed representation if was requested.
Well, it is bound to "detailed error reporting", but that's closest what we
have now without creating new entities.
Diffstat (limited to 'py/objfun.c')
-rw-r--r-- | py/objfun.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/py/objfun.c b/py/objfun.c index e0c25771e..37fe80965 100644 --- a/py/objfun.c +++ b/py/objfun.c @@ -131,8 +131,9 @@ const char *mp_obj_code_get_name(const byte *code_info) { return qstr_str(block_name); } -const char *mp_obj_fun_get_name(mp_obj_fun_bc_t *o) { - const byte *code_info = o->bytecode; +const char *mp_obj_fun_get_name(mp_obj_t fun_in) { + mp_obj_fun_bc_t *fun = fun_in; + const byte *code_info = fun->bytecode; return mp_obj_code_get_name(code_info); } |