Skip to content
Snippets Groups Projects
Verified Commit 2b3e9a3b authored by Jeremy Soller's avatar Jeremy Soller
Browse files

Use backup abort on C++

parent cc0ac982
No related branches found
No related tags found
No related merge requests found
#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" {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment