name: duk_compile_string proto: | void duk_compile_string(duk_context *ctx, duk_uint_t flags, const char *src); stack: | [ ... ] -> [ ... function! ] summary: |

Like duk_compile(), but the compile input is given as a C string. The filename associated with the function is "input".

example: | duk_compile_string(ctx, 0, "print('program code');"); tags: - compile - string introduced: 1.0.0