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.
28 lines
602 B
28 lines
602 B
name: duk_peval_string_noresult
|
|
|
|
proto: |
|
|
duk_int_t duk_peval_string_noresult(duk_context *ctx, const char *src);
|
|
|
|
stack: |
|
|
[ ... ] -> [ ... ]
|
|
|
|
summary: |
|
|
<p>Like
|
|
<code><a href="#duk_peval_string">duk_peval_string()</a></code>, but leaves
|
|
no result on the value stack (regardless of success/error result).</p>
|
|
|
|
<div include="no-string-intern.html" />
|
|
|
|
example: |
|
|
if (duk_peval_string_noresult(ctx, "print('testString'.toUpperCase());") != 0) {
|
|
printf("eval failed\n");
|
|
} else {
|
|
printf("eval successful\n");
|
|
}
|
|
|
|
tags:
|
|
- compile
|
|
- protected
|
|
- string
|
|
|
|
introduced: 1.0.0
|
|
|