mirror of https://github.com/svaarala/duktape.git
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
23 lines
438 B
23 lines
438 B
name: duk_syntax_error
|
|
|
|
proto: |
|
|
duk_ret_t duk_syntax_error(duk_context *ctx, const char *fmt, ...);
|
|
|
|
stack: |
|
|
[ ... ] -> [ ... err! ]
|
|
|
|
summary: |
|
|
<p>Convenience API call, equivalent to
|
|
<code><a href="#duk_error">duk_error()</a></code> with an error code
|
|
<code>DUK_ERR_SYNTAX_ERROR</code>.</p>
|
|
|
|
example: |
|
|
return duk_syntax_error(ctx, "my error: %d", (int) argval);
|
|
|
|
tags:
|
|
- error
|
|
|
|
seealso:
|
|
- duk_error
|
|
|
|
introduced: 2.0.0
|
|
|