Remove the ENABLED/DISABLED macros (#4515)

The removal of these macros enabled cppcheck to reveal new errors.
These errors are also fixed by the patch.

JerryScript-DCO-1.0-Signed-off-by: Robert Fancsik frobert@inf.u-szeged.hu
This commit is contained in:
Robert Fancsik
2021-02-04 23:47:05 +01:00
committed by GitHub
parent e01c2549d7
commit 0628ae1e7b
337 changed files with 5186 additions and 5191 deletions
+4 -4
View File
@@ -118,14 +118,14 @@ jcontext_take_exception (void)
return JERRY_CONTEXT (error_value);
} /* jcontext_take_exception */
#if !ENABLED (JERRY_EXTERNAL_CONTEXT)
#if !JERRY_EXTERNAL_CONTEXT
/**
* Global context.
*/
jerry_context_t jerry_global_context;
#if !ENABLED (JERRY_SYSTEM_ALLOCATOR)
#if !JERRY_SYSTEM_ALLOCATOR
/**
* Check size of heap is corresponding to configuration
@@ -138,9 +138,9 @@ JERRY_STATIC_ASSERT (sizeof (jmem_heap_t) <= JMEM_HEAP_SIZE,
*/
jmem_heap_t jerry_global_heap JERRY_ATTR_ALIGNED (JMEM_ALIGNMENT) JERRY_ATTR_GLOBAL_HEAP;
#endif /* !ENABLED (JERRY_SYSTEM_ALLOCATOR) */
#endif /* !JERRY_SYSTEM_ALLOCATOR */
#endif /* !ENABLED (JERRY_EXTERNAL_CONTEXT) */
#endif /* !JERRY_EXTERNAL_CONTEXT */
/**
* @}