Use backup abort on C++
This commit is contained in:
@@ -1,7 +1,13 @@
|
||||
#ifndef _BITS_STDLIB_H
|
||||
#define _BITS_STDLIB_H
|
||||
|
||||
# define abort() __abort(__func__, __FILE__, __LINE__)
|
||||
#ifdef __cplusplus
|
||||
// C++ needs abort to be a function, define backup function
|
||||
void abort(void);
|
||||
#else
|
||||
// C uses detailed abort macro
|
||||
#define abort() __abort(__func__, __FILE__, __LINE__)
|
||||
#endif
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
|
||||
Reference in New Issue
Block a user