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: |

Like duk_peval_lstring(), but leaves no result on the value stack (regardless of success/error result).

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 - string introduced: 1.0.0