We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent aceb573 commit 73612acCopy full SHA for 73612ac
1 file changed
py/misc.h
@@ -341,7 +341,9 @@ typedef const char *mp_rom_error_text_t;
341
// Might add more types of compressed text in the future.
342
// For now, forward directly to MP_COMPRESSED_ROM_TEXT.
343
// CIRCUITPY: MP_ERROR_TEXT() -> translate()
344
-#if !CIRCUITPY
+#if CIRCUITPY
345
+#include "supervisor/shared/translate/translate.h"
346
+#else
347
#define MP_ERROR_TEXT(x) (mp_rom_error_text_t)MP_COMPRESSED_ROM_TEXT(x)
348
#endif
349
0 commit comments