Remove unused macro M_INIT_FAILURE
This commit is contained in:
1 parent
87cd964329
commit
446afb04c7
2 files changed
-22
No files matched your search
@@ -5121,20 +5121,6 @@ NOTE: The last two cases are not properly fully supported yet.
|
||||
Throwing an exception is not fully supported yet.
|
||||
|
||||
|
||||
##### void M\_INIT\_FAILURE (void)
|
||||
|
||||
This macro is called when an initialization error has been detected and shall be raised.
|
||||
The default is to abort the execution.
|
||||
The macro can :
|
||||
|
||||
* abort the execution,
|
||||
* throw an exception (In this case, the state of the object is unchanged),
|
||||
* set a global error variable and return.
|
||||
|
||||
NOTE: The last case is not currently supported.
|
||||
Throwing an exception is not fully supported yet.
|
||||
|
||||
|
||||
##### void M\_ASSERT\_INIT\_FAILURE(expression)
|
||||
|
||||
This macro is called when an assertion used in an initialization context
|
||||
|
||||
@@ -2392,14 +2392,6 @@ m_core_hash (const void *str, size_t length)
|
||||
} while (0)
|
||||
#endif
|
||||
|
||||
#ifndef M_INIT_FAILURE
|
||||
#define M_INIT_FAILURE() do { \
|
||||
fprintf(stderr, "ERROR(M*LIB): Can not initialize data in (%s:%s:%d).\n", \
|
||||
__FILE__, __func__, __LINE__); \
|
||||
abort(); \
|
||||
} while (0)
|
||||
#endif
|
||||
|
||||
#ifndef M_ASSERT_INIT
|
||||
#define M_ASSERT_INIT(expr) do { \
|
||||
if (!(expr)) { \
|
||||
|
||||
Reference in new issue
Block a user