This caused an issue with a few config options when feature option support
(DUK_OPT_xxx) was enabled. For example, DUK_USE_PACKED_TVAL is provided by
platform detection; if neither DUK_OPT_PACKED_TVAL nor DUK_OPT_NO_PACKED_TVAL
was defined, the default clause would #undef DUK_USE_PACKED_TVAL instead of
keeping the platform detected value.
Affected config options:
- DUK_USE_PACKED_TVAL
- DUK_USE_SETJMP
- DUK_USE_UNDERSCORE_SETJMP
* Fix config option version (introduced in 1.5.0)
* Minor wording changes
* Add config example for compliance options
* Add a 'compliance' config option category for future use
* Add DUK_USE_CPP_EXCEPTIONS (DUK_OPT_CPP_EXCEPTIONS) which causes Duktape
to use C++ try/catch instead of longjmp/setjmp for internal long control
transfers. When try/catch is used scope-based resource management
(SBRM, a special case of RAII) works as expected, e.g. C++ automatic
destructors in Duktape/C functions will be executed.
* Add <exception> header to shared headers when compiling in C++ mode.
The header is needed to provide std::exception.
* Add a sanity check: if DUK_USE_CPP_EXCEPTIONS is enabled and not
compiling with a C++ compiler, fail the compile with an explicit #error.
DUK_USE_DEBUGGER_THROW_NOTIFY default is "true". If the option "requires"
DUK_USE_DEBUGGER_SUPPORT (which defaults to "false") the option configuraiton
would be inconsistent and rejected by default.
Remove the "required" metadata for debugger options: the options don't really
require debugger support. Instead, if debugger support is disabled, the
debugger config options are just ignored without causing a build error.
- Add DUK_USE_STRHASH_SKIP_SHIFT option for the "fast" skipping hash.
- Add DUK_USE_STRHASH_DENSE option (default false) to revert back to
the Duktape 1.3.0 string hash algorithm.
- Disable JSON.stringify() fastpath by default
- Rework to use DUK_USE_ALIGN_BY config option
- Replace previous DUK_USE_ALIGN_4 and DUK_USE_ALIGN_8 with a cleaner
DUK_USE_ALIGN_BY config option (allowed values 1, 4, 8)
- Add fastpath tag in anticipation of automatic fastpath suggestions
or warnings