- Make duk_dump_context_{stdout,stderr}() a comma expression macro instead
of a do-while-macro to allow use in expressions, e.g.
"(void) duk_dump_context_stdout()"
- Fix trivial bug for DUK_OPT_NO_FILE_IO
For GCC 4+ these now produce a nice clean build when compiling the split
compiler source files. Without these, the result is quite messy.
MSVC symbol visibility macros are based on feedback from David Demelier.
They seem to now allow a Windows DLL build (__declspec(dllimport) and
__declspec(dllexport)).
Use variadic macros for VS2005+. This is useful for applications which use
multiple threads running on separate Duktape heaps. Without variadic macros
some error fields are passed through globals which is not thread safe.
Make Duktape command line barebones by default with no explicit user
options. This is better than the previous behavior for people who try
out Duktape for the first time on e.g. Windows. Readline is enabled
now with DUK_CMDLINE_FANCY.
The default is a barebones build and it happens without any specific options.
This is a better default for people trying Duktape out for the first time.
Fix bug in duk_peval_file(), duk_peval_file_noresult(), and duk_peval_compile()
where a non-existent file would cause the functions to throw. This is
obviously unexpected because the API calls are supposed to be protected.
With this fix they now return rc=1 and the error on the stack will be
"Error: no sourcecode" (not ideal, but works for now).
duk_push_string_file_raw() can be made to push undefined for a file read
error; after that, compile will throw a "no sourcecode" error. This is
not an ideal error messages but good enough for now.