=proto void duk_eval_file(duk_context *ctx, const char *path); =stack [ ... ] -> [ ... result! ] =summary

Like duk_eval(), but the eval input is given as a filename. The filename associated with the temporary function created for the eval code is path as is.

=example duk_eval_string(ctx, "test.js"); printf("result is: '%s'\n", duk_get_string(ctx, -1)); duk_pop(ctx); =tags compile =macro