Skip to content

Commit e63af1a

Browse files
authored
Merge pull request prusa3d#3434 from leptun/MK3_lang_get_original_string
_O() macro
2 parents d4d5294 + dc812da commit e63af1a

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

Firmware/language.h

+2
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@
2929
#define ISTR(s) s
3030
#define _i(s) _I(s)
3131
#define _T(s) s
32+
#define _O(s) s
3233
#else //(LANG_MODE == 0)
3334
// section .loc_sec (originaly .progmem0) will be used for localized translated strings
3435
#define PROGMEM_I2 __attribute__((section(".loc_sec")))
@@ -40,6 +41,7 @@
4041
#define ISTR(s) "\xff\xff" s
4142
#define _i(s) lang_get_translation(_I(s))
4243
#define _T(s) lang_get_translation(s)
44+
#define _O(s) (s + 2)
4345
#endif //(LANG_MODE == 0)
4446
#define _N(s) (__extension__({static const char __c[] PROGMEM_N1 = s; &__c[0];}))
4547
#define _n(s) _N(s)

0 commit comments

Comments
 (0)