actual/packages/node-libofx/OpenSP-1.5.2/lib/assert.cxx

29 lines
461 B
C++
Raw Normal View History

2022-04-29 02:44:38 +00:00
// Copyright (c) 1994 James Clark
// See the file COPYING for copying permission.
#include "splib.h"
// config.h included by splib.h
#ifdef SP_USE_OWN_ASSERT
#include <stdlib.h>
#include "macros.h"
#ifdef __GNUG__
void exit(int) __attribute__((noreturn));
#endif
#ifdef SP_NAMESPACE
namespace SP_NAMESPACE {
#endif
void assertionFailed(const char *, const char *, int)
{
abort();
exit(1);
}
#ifdef SP_NAMESPACE
}
#endif
#endif /* SP_USE_OWN_ASSERT */