Use backup abort on C++

This commit is contained in:
Jeremy Soller
2023-03-10 10:23:08 -07:00
parent cc0ac982c4
commit 2b3e9a3bd0
+7 -1
View File
@@ -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" {