aboutsummaryrefslogtreecommitdiff
path: root/py/bc.c
diff options
context:
space:
mode:
authorDamien George <damien.p.george@gmail.com>2019-09-26 11:48:07 +1000
committerDamien George <damien.p.george@gmail.com>2019-10-01 12:26:22 +1000
commit1d0423419b6da1f865ad73e1a95f26e724770ab7 (patch)
tree25ee98b6ece14698c8c98b71d460fdeb2187506d /py/bc.c
parentfd9b7efe3957f2f0b24d9cec2fe38ddaccf0539d (diff)
py/bc: Don't include mp_decode_uint funcs when not needed.
These are now only needed when persistent code is disabled.
Diffstat (limited to 'py/bc.c')
-rw-r--r--py/bc.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/py/bc.c b/py/bc.c
index d671b64f9..7dd4b2246 100644
--- a/py/bc.c
+++ b/py/bc.c
@@ -40,6 +40,8 @@
#define DEBUG_printf(...) (void)0
#endif
+#if !MICROPY_PERSISTENT_CODE
+
mp_uint_t mp_decode_uint(const byte **ptr) {
mp_uint_t unum = 0;
byte val;
@@ -70,6 +72,8 @@ const byte *mp_decode_uint_skip(const byte *ptr) {
return ptr;
}
+#endif
+
STATIC NORETURN void fun_pos_args_mismatch(mp_obj_fun_bc_t *f, size_t expected, size_t given) {
#if MICROPY_ERROR_REPORTING == MICROPY_ERROR_REPORTING_TERSE
// generic message, used also for other argument issues