mirror of
https://github.com/micropython/micropython.git
synced 2025-12-16 09:50:15 +01:00
py/misc.h: Rename _MP_STRINGIFY to not use leading underscore in ident.
Macro identifiers with a leading underscore are reserved.
This commit is contained in:
@@ -47,8 +47,8 @@ typedef unsigned int uint;
|
||||
#endif
|
||||
|
||||
// Classical double-indirection stringification of preprocessor macro's value
|
||||
#define _MP_STRINGIFY(x) #x
|
||||
#define MP_STRINGIFY(x) _MP_STRINGIFY(x)
|
||||
#define MP_STRINGIFY_HELPER(x) #x
|
||||
#define MP_STRINGIFY(x) MP_STRINGIFY_HELPER(x)
|
||||
|
||||
// Static assertion macro
|
||||
#define MP_STATIC_ASSERT(cond) ((void)sizeof(char[1 - 2 * !(cond)]))
|
||||
|
||||
Reference in New Issue
Block a user