Jelajahi Sumber

Merge pull request #148 from SummerLife/open_source_line

[update] enable the source line option when print an exception with t…
朱天龙 (Armink) 6 tahun lalu
induk
melakukan
ab1f031074
1 mengubah file dengan 1 tambahan dan 1 penghapusan
  1. 1 1
      port/mpconfigport.h

+ 1 - 1
port/mpconfigport.h

@@ -65,7 +65,7 @@
 #define MICROPY_KBD_EXCEPTION       (1)
 #define MICROPY_KBD_EXCEPTION       (1)
 #define MICROPY_HELPER_REPL         (1)
 #define MICROPY_HELPER_REPL         (1)
 #define MICROPY_HELPER_LEXER_UNIX   (0)
 #define MICROPY_HELPER_LEXER_UNIX   (0)
-#define MICROPY_ENABLE_SOURCE_LINE  (0)
+#define MICROPY_ENABLE_SOURCE_LINE  (1)
 #define MICROPY_ENABLE_DOC_STRING   (0)
 #define MICROPY_ENABLE_DOC_STRING   (0)
 #define MICROPY_ENABLE_SCHEDULER    (1)
 #define MICROPY_ENABLE_SCHEDULER    (1)
 #define MICROPY_ERROR_REPORTING     (MICROPY_ERROR_REPORTING_TERSE)
 #define MICROPY_ERROR_REPORTING     (MICROPY_ERROR_REPORTING_TERSE)