- Removed Double Underscores for portability
This commit is contained in:
@@ -16,15 +16,15 @@
|
||||
// along with this program. If not, see <https://www.gnu.org/licenses/>.
|
||||
// =====================================================================================================================
|
||||
|
||||
#include <fennec/lang/detail/__stdlib.h>
|
||||
#include <fennec/lang/detail/_stdlib.h>
|
||||
|
||||
using assert_handler = void (*)(const char *, const char *, int , const char *);
|
||||
|
||||
void __assert_callback(const char* expression, const char* file, int line, const char* function, const char* description);
|
||||
void _assert_callback(const char* expression, const char* file, int line, const char* function, const char* description);
|
||||
|
||||
void __assert_impl(const char* expression, const char* file, int line, const char* function, const char* description, bool halt)
|
||||
void _assert_impl(const char* expression, const char* file, int line, const char* function, const char* description, bool halt)
|
||||
{
|
||||
__assert_callback(expression, file, line, function, description);
|
||||
_assert_callback(expression, file, line, function, description);
|
||||
|
||||
if (halt) {
|
||||
::abort();
|
||||
|
||||
Reference in New Issue
Block a user