Unifiy the comments of preprocessor conditionals

JerryScript-DCO-1.0-Signed-off-by: Akos Kiss akiss@inf.u-szeged.hu
This commit is contained in:
Akos Kiss
2016-04-18 17:09:15 +02:00
parent df1e428c71
commit 3a8d3b3bcc
56 changed files with 165 additions and 165 deletions
+7 -7
View File
@@ -1,4 +1,4 @@
/* Copyright 2014-2015 Samsung Electronics Co., Ltd.
/* Copyright 2014-2016 Samsung Electronics Co., Ltd.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@@ -94,12 +94,12 @@ jerry_assert_fail (const char *assertion, /**< assertion condition string */
#if !defined (JERRY_NDEBUG) || !defined (JERRY_DISABLE_HEAVY_DEBUG)
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 && JERRY_DISABLE_HEAVY_DEBUG */
(void) assertion;
(void) file;
(void) function;
(void) line;
#endif /* JERRY_NDEBUG && JERRY_DISABLE_HEAVY_DEBUG */
#endif /* !JERRY_NDEBUG || !JERRY_DISABLE_HEAVY_DEBUG */
jerry_fatal (ERR_FAILED_INTERNAL_ASSERTION);
} /* jerry_assert_fail */
@@ -116,11 +116,11 @@ jerry_unreachable (const char *comment, /**< comment to unreachable mark if exis
{
#ifndef JERRY_NDEBUG
printf ("ICE: Unreachable control path at %s(%s):%lu was executed", file, function, (unsigned long) line);
#else /* !JERRY_NDEBUG */
#else /* JERRY_NDEBUG */
(void) file;
(void) function;
(void) line;
#endif /* JERRY_NDEBUG */
#endif /* !JERRY_NDEBUG */
if (comment != NULL)
{
@@ -143,11 +143,11 @@ jerry_unimplemented (const char *comment, /**< comment to unimplemented mark if
{
#ifndef JERRY_NDEBUG
printf ("SORRY: Unimplemented case at %s(%s):%lu was executed", file, function, (unsigned long) line);
#else /* !JERRY_NDEBUG */
#else /* JERRY_NDEBUG */
(void) file;
(void) function;
(void) line;
#endif /* JERRY_NDEBUG */
#endif /* !JERRY_NDEBUG */
if (comment != NULL)
{
+5 -5
View File
@@ -80,9 +80,9 @@ extern void __noreturn jerry_unimplemented (const char *, const char *, const ch
#if !defined (JERRY_NDEBUG) || !defined (JERRY_DISABLE_HEAVY_DEBUG)
#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 && JERRY_DISABLE_HEAVY_DEBUG */
#define JERRY_ASSERT(x) do { if (false) { (void)(x); } } while (0)
#endif /* JERRY_NDEBUG && JERRY_DISABLE_HEAVY_NEBUG */
#endif /* !JERRY_NDEBUG || !JERRY_DISABLE_HEAVY_DEBUG */
#ifdef JERRY_ENABLE_LOG
#define JERRY_LOG(lvl, ...) \
@@ -109,7 +109,7 @@ extern void __noreturn jerry_unimplemented (const char *, const char *, const ch
} while (0)
#define JERRY_DDLOG(...) JERRY_DLOG (__VA_ARGS__)
#define JERRY_DDDLOG(...) JERRY_DLOG (__VA_ARGS__)
#endif /* !JERRY_ENABLE_LOG */
#endif /* JERRY_ENABLE_LOG */
#define JERRY_ERROR_MSG(...) jerry_port_errormsg (__VA_ARGS__)
#define JERRY_WARNING_MSG(...) JERRY_ERROR_MSG (__VA_ARGS__)
@@ -141,7 +141,7 @@ extern void jerry_ref_unused_variables (void *, ...);
} \
jerry_unimplemented (comment, __FILE__, __func__, __LINE__); \
} while (0)
#else /* !JERRY_NDEBUG */
#else /* JERRY_NDEBUG */
#define JERRY_UNREACHABLE() \
do \
{ \
@@ -163,7 +163,7 @@ extern void jerry_ref_unused_variables (void *, ...);
} \
jerry_unimplemented (comment, NULL, NULL, 0); \
} while (0)
#endif /* JERRY_NDEBUG */
#endif /* !JERRY_NDEBUG */
/**
* Conditions' likeliness, unlikeliness.