Add parameter names to function declarations. (#1498)
It's generally considered a bad programming practice to have function declarations without parameter names. This is another legacy from the early days of the project. Fix in one go to minimize history disruption. Used a custom clang-tidy check to create the bulk of the change. JerryScript-DCO-1.0-Signed-off-by: Tilmann Scheller t.scheller@samsung.com
This commit is contained in:
@@ -81,8 +81,8 @@
|
||||
enum { JERRY_STATIC_ASSERT_GLUE (static_assertion_failed_, __LINE__, msg) = 1 / (!!(x)) }
|
||||
|
||||
#ifndef JERRY_NDEBUG
|
||||
void __noreturn jerry_assert_fail (const char *, const char *, const char *, const uint32_t);
|
||||
void __noreturn jerry_unreachable (const char *, const char *, const uint32_t);
|
||||
void __noreturn jerry_assert_fail (const char *assertion, const char *file, const char *function, const uint32_t line);
|
||||
void __noreturn jerry_unreachable (const char *file, const char *function, const uint32_t line);
|
||||
|
||||
#define JERRY_ASSERT(x) \
|
||||
do \
|
||||
@@ -114,7 +114,7 @@ void __noreturn jerry_unreachable (const char *, const char *, const uint32_t);
|
||||
/**
|
||||
* Exit on fatal error
|
||||
*/
|
||||
void __noreturn jerry_fatal (jerry_fatal_code_t);
|
||||
void __noreturn jerry_fatal (jerry_fatal_code_t code);
|
||||
|
||||
/*
|
||||
* Logging
|
||||
|
||||
Reference in New Issue
Block a user