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.
23 lines
506 B
23 lines
506 B
name: duk_compile_string
|
|
|
|
proto: |
|
|
void duk_compile_string(duk_context *ctx, duk_uint_t 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
|
|
<code>"input"</code>.</p>
|
|
|
|
<div include="no-string-intern.html" />
|
|
|
|
example: |
|
|
duk_compile_string(ctx, 0, "print('program code');");
|
|
|
|
tags:
|
|
- compile
|
|
|
|
introduced: 1.0.0
|
|
|