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.
20 lines
506 B
20 lines
506 B
=proto
|
|
const char *duk_push_string_file(duk_context *ctx, const char *path);
|
|
|
|
=stack
|
|
[ ... ] -> [ ... data! ]
|
|
|
|
=summary
|
|
<p>Push the contents of a file <code>path</code> into the stack as string data.
|
|
The file should be CESU-8 formatted if Ecmascript string compatibility is
|
|
necessary. A pointer to the interned string data is returned. If the
|
|
operation fails, throws an error.</p>
|
|
|
|
<p>If <code>path</code> is NULL, throws an error.</p>
|
|
|
|
=example
|
|
duk_push_string_file(ctx, "test.js");
|
|
|
|
=tags
|
|
stack
|
|
string
|
|
|