Get rid of the remains of heavy debug
JerryScript-DCO-1.0-Signed-off-by: Zsolt Borbély zsborbely.u-szeged@partner.samsung.com
This commit is contained in:
@@ -82,15 +82,15 @@ jerry_assert_fail (const char *assertion, /**< assertion condition string */
|
||||
const char *function, /**< function name */
|
||||
const uint32_t line) /**< line */
|
||||
{
|
||||
#if !defined (JERRY_NDEBUG) || !defined (JERRY_DISABLE_HEAVY_DEBUG)
|
||||
#ifndef JERRY_NDEBUG
|
||||
printf ("ICE: Assertion '%s' failed at %s(%s):%lu.\n",
|
||||
assertion, file, function, (unsigned long) line);
|
||||
#else /* JERRY_NDEBUG && JERRY_DISABLE_HEAVY_DEBUG */
|
||||
#else /* JERRY_NDEBUG */
|
||||
(void) assertion;
|
||||
(void) file;
|
||||
(void) function;
|
||||
(void) line;
|
||||
#endif /* !JERRY_NDEBUG || !JERRY_DISABLE_HEAVY_DEBUG */
|
||||
#endif /* !JERRY_NDEBUG */
|
||||
|
||||
jerry_fatal (ERR_FAILED_INTERNAL_ASSERTION);
|
||||
} /* jerry_assert_fail */
|
||||
|
||||
@@ -77,12 +77,12 @@ extern void __noreturn jerry_assert_fail (const char *, const char *, const char
|
||||
extern void __noreturn jerry_unreachable (const char *, const char *, const char *, const uint32_t);
|
||||
extern void __noreturn jerry_unimplemented (const char *, const char *, const char *, const uint32_t);
|
||||
|
||||
#if !defined (JERRY_NDEBUG) || !defined (JERRY_DISABLE_HEAVY_DEBUG)
|
||||
#ifndef JERRY_NDEBUG
|
||||
#define JERRY_ASSERT(x) do { if (__builtin_expect (!(x), 0)) { \
|
||||
jerry_assert_fail (#x, __FILE__, __func__, __LINE__); } } while (0)
|
||||
#else /* JERRY_NDEBUG && JERRY_DISABLE_HEAVY_DEBUG */
|
||||
#else /* JERRY_NDEBUG */
|
||||
#define JERRY_ASSERT(x) do { if (false) { (void)(x); } } while (0)
|
||||
#endif /* !JERRY_NDEBUG || !JERRY_DISABLE_HEAVY_DEBUG */
|
||||
#endif /* !JERRY_NDEBUG */
|
||||
|
||||
#ifdef JERRY_ENABLE_LOG
|
||||
#define JERRY_LOG(lvl, ...) \
|
||||
|
||||
Reference in New Issue
Block a user