feat: enable Companion simulator to switch UI language at runtime (#6510)
This commit is contained in:
@@ -27,6 +27,16 @@
|
||||
|
||||
#include "memory_sections.h"
|
||||
|
||||
#if !defined(ALL_LANGS) || defined(BOOT)
|
||||
typedef const char* STR_TYP;
|
||||
#define STR_DEF(x) x
|
||||
#define STR_VAL(x) x
|
||||
#else
|
||||
typedef const char* (*STR_TYP)();
|
||||
#define STR_DEF(x) x##_FN
|
||||
#define STR_VAL(x) x()
|
||||
#endif
|
||||
|
||||
#if !defined(M_PI)
|
||||
#define M_PI 3.14159265358979323846 // pi
|
||||
#define M_PI_2 1.57079632679489661923 // pi/2
|
||||
|
||||
Reference in New Issue
Block a user