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.

26 lines
548 B

=proto
void duk_eval_string(duk_context *ctx, const char *str);
=stack
[ ... ] -> [ ... result! ]
=summary
<p>Like
<tt><a href="#duk_eval">duk_eval()</a></tt>, but the eval input
is given as a C string. The filename associated with the temporary
is automatically provided from the <tt>__FILE__</tt> preprocessor define
of the caller.</p>
=example
duk_eval_string(ctx, "'testString'.toUpperCase()");
printf("result is: '%s'\n", duk_get_string(ctx, -1));
duk_pop(ctx);
=tags
compile
=fixme
Remove? Note that this is a macro somewhere?
=macro