Add m_volatile

This commit is contained in:
Patrick Pelissier committed 2024-04-08 23:08:16 +02:00
1 parent b191baec8b
commit 8f97a194ae
2 files changed
+8

No files matched your search

+4
View File
@@ -4550,6 +4550,10 @@ m_core_parse2_enum (const char str[], const char **endptr)
Do nothing if exceptions are not enabled. */
#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,
and clears the variable afterwards.
Otherwise, stop the execution and execute else_code if defined.
+4
View File
@@ -585,5 +585,9 @@ m_try_jump_final(m_try_t state)
#undef M_MEMORY_FULL
#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