Add m_volatile
This commit is contained in:
1 parent
b191baec8b
commit
8f97a194ae
2 files changed
+8
No files matched your search
@@ -4550,6 +4550,10 @@ m_core_parse2_enum (const char str[], const char **endptr)
|
|||||||
Do nothing if exceptions are not enabled. */
|
Do nothing if exceptions are not enabled. */
|
||||||
#define M_IF_EXCEPTION(...) (void) 0
|
#define M_IF_EXCEPTION(...) (void) 0
|
||||||
|
|
||||||
|
/* Declare a variable as volatile if exceptions are enabled */
|
||||||
|
#define m_volatile /* nothing */
|
||||||
|
|
||||||
|
|
||||||
/* Declare a variable, initialize it, continue if the initialization succeeds,
|
/* Declare a variable, initialize it, continue if the initialization succeeds,
|
||||||
and clears the variable afterwards.
|
and clears the variable afterwards.
|
||||||
Otherwise, stop the execution and execute else_code if defined.
|
Otherwise, stop the execution and execute else_code if defined.
|
||||||
|
|||||||
@@ -585,5 +585,9 @@ m_try_jump_final(m_try_t state)
|
|||||||
#undef M_MEMORY_FULL
|
#undef M_MEMORY_FULL
|
||||||
#define M_MEMORY_FULL(size) M_THROW(M_ERROR_MEMORY, (intptr_t)(size))
|
#define M_MEMORY_FULL(size) M_THROW(M_ERROR_MEMORY, (intptr_t)(size))
|
||||||
|
|
||||||
|
// Add attribute volatile if exceptions are enabled
|
||||||
|
#undef m_volatile
|
||||||
|
#define m_volatile volatile
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
Reference in new issue
Block a user