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.
18 lines
452 B
18 lines
452 B
=proto
|
|
void duk_compile_string(duk_context *ctx, int flags, const char *src);
|
|
|
|
=stack
|
|
[ ... ] -> [ ... function! ]
|
|
|
|
=summary
|
|
<p>Like
|
|
<code><a href="#duk_compile">duk_compile()</a></code>, but the compile input
|
|
is given as a C string. The filename associated with the function is
|
|
automatically provided from the <code>__FILE__</code> preprocessor define
|
|
of the caller.</p>
|
|
|
|
=example
|
|
duk_compile_string(ctx, 0, "print('program code');");
|
|
|
|
=tags
|
|
compile
|
|
|