From 62ad189a65e5e3b4cb6c64c9ea2d493f2c06fffd Mon Sep 17 00:00:00 2001 From: Damien George Date: Wed, 29 Jan 2014 21:51:51 +0000 Subject: py: Add compile option to enable/disable source line numbers. --- py/mpconfig.h | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'py/mpconfig.h') diff --git a/py/mpconfig.h b/py/mpconfig.h index 97e4b1387..38b74b733 100644 --- a/py/mpconfig.h +++ b/py/mpconfig.h @@ -76,6 +76,12 @@ typedef long long mp_longint_impl_t; #endif +// Whether to include information in the byte code to determine source +// line number (increases RAM usage, but doesn't slow byte code execution) +#ifndef MICROPY_ENABLE_SOURCE_LINE +#define MICROPY_ENABLE_SOURCE_LINE (0) +#endif + // Whether to support float and complex types #ifndef MICROPY_ENABLE_FLOAT #define MICROPY_ENABLE_FLOAT (0) -- cgit v1.2.3