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