Rework usages/naming of configuration macros [part 3] (#2927)
Reworked the JERRY_DEBUGGER macro to be a 0/1 switch. JerryScript-DCO-1.0-Signed-off-by: Peter Gal pgal.u-szeged@partner.samsung.com
This commit is contained in:
@@ -159,6 +159,17 @@
|
||||
# define JERRY_CPOINTER_32_BIT 0
|
||||
#endif /* !defined (JERRY_CPOINTER_32_BIT) */
|
||||
|
||||
/**
|
||||
* Enable/Disable the engine's JavaScript debugger interface
|
||||
*
|
||||
* Allowed values:
|
||||
* 0: Disable the debugger parts.
|
||||
* 1: Enable the debugger.
|
||||
*/
|
||||
#ifndef JERRY_DEBUGGER
|
||||
# define JERRY_DEBUGGER 0
|
||||
#endif /* !defined (JERRY_DEBUGGER) */
|
||||
|
||||
/**
|
||||
* Enable/Disable built-in error messages for error objects.
|
||||
*
|
||||
@@ -605,6 +616,10 @@
|
||||
|| ((JERRY_CPOINTER_32_BIT != 0) && (JERRY_CPOINTER_32_BIT != 1))
|
||||
# error "Invalid value for 'JERRY_CPOINTER_32_BIT' macro."
|
||||
#endif
|
||||
#if !defined (JERRY_DEBUGGER) \
|
||||
|| ((JERRY_DEBUGGER != 0) && (JERRY_DEBUGGER != 1))
|
||||
# error "Invalid value for 'JERRY_DEBUGGER' macro."
|
||||
#endif
|
||||
#if !defined (JERRY_ERROR_MESSAGES) \
|
||||
|| ((JERRY_ERROR_MESSAGES != 0) && (JERRY_ERROR_MESSAGES != 1))
|
||||
# error "Invalid value for 'JERRY_ERROR_MESSAGES' macro."
|
||||
|
||||
Reference in New Issue
Block a user