Implement vm_throw callback (#4726)
Slightly improve the description of vm_exec_stop callback. JerryScript-DCO-1.0-Signed-off-by: Zoltan Herczeg zherczeg.u-szeged@partner.samsung.com
This commit is contained in:
+17
-2
@@ -430,13 +430,24 @@
|
||||
* Enable/Disable the vm execution stop callback function.
|
||||
*
|
||||
* Allowed values:
|
||||
* 0: Disable vm exec stop callbacks.
|
||||
* 1: Enable vm exec stop callback functionality.
|
||||
* 0: Disable vm exec stop callback support.
|
||||
* 1: Enable vm exec stop callback support.
|
||||
*/
|
||||
#ifndef JERRY_VM_EXEC_STOP
|
||||
# define JERRY_VM_EXEC_STOP 0
|
||||
#endif /* !defined (JERRY_VM_EXEC_STOP) */
|
||||
|
||||
/**
|
||||
* Enable/Disable the vm throw callback function.
|
||||
*
|
||||
* Allowed values:
|
||||
* 0: Disable vm throw callback support.
|
||||
* 1: Enable vm throw callback support.
|
||||
*/
|
||||
#ifndef JERRY_VM_THROW
|
||||
# define JERRY_VM_THROW 0
|
||||
#endif /* !defined (JERRY_VM_THROW) */
|
||||
|
||||
/**
|
||||
* Advanced section configurations.
|
||||
*/
|
||||
@@ -680,6 +691,10 @@
|
||||
|| ((JERRY_VM_EXEC_STOP != 0) && (JERRY_VM_EXEC_STOP != 1))
|
||||
# error "Invalid value for 'JERRY_VM_EXEC_STOP' macro."
|
||||
#endif
|
||||
#if !defined (JERRY_VM_THROW) \
|
||||
|| ((JERRY_VM_THROW != 0) && (JERRY_VM_THROW != 1))
|
||||
# error "Invalid value for 'JERRY_VM_THROW' macro."
|
||||
#endif
|
||||
|
||||
/**
|
||||
* Cross component requirements check.
|
||||
|
||||
Reference in New Issue
Block a user