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.
 
 
 
 
 
 

24 lines
521 B

name: duk_compile_string_filename
proto: |
void duk_compile_string_filename(duk_context *ctx, duk_uint_t flags, const char *src);
stack: |
[ ... filename! ] -> [ ... function! ]
summary: |
<p>Like
<code><a href="#duk_compile">duk_compile()</a></code>, but the compile input
is given as a C string.</p>
<div include="no-string-intern.html" />
example: |
duk_push_string(ctx, "myFile.js");
duk_compile_string_filename(ctx, 0, "print('program code');");
tags:
- compile
- string
introduced: 1.0.0