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.
26 lines
592 B
26 lines
592 B
name: duk_compile_lstring
|
|
|
|
proto: |
|
|
void duk_compile_lstring(duk_context *ctx, duk_uint_t flags, const char *src, duk_size_t len);
|
|
|
|
stack: |
|
|
[ ... ] -> [ ... function! ]
|
|
|
|
summary: |
|
|
<p>Like
|
|
<code><a href="#duk_compile">duk_compile()</a></code>, but the compile input
|
|
is given as a C string with explicit length. The filename associated with the
|
|
function is <code>"input"</code>.</p>
|
|
|
|
<div include="no-string-intern.html" />
|
|
|
|
example: |
|
|
const char *src = /* ... */;
|
|
duk_size_t len = /* ... */;
|
|
|
|
duk_compile_lstring(ctx, 0, src, len);
|
|
|
|
tags:
|
|
- compile
|
|
|
|
introduced: 1.0.0
|
|
|