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.
13 lines
235 B
13 lines
235 B
11 years ago
|
/*===
|
||
|
program code
|
||
|
return value is: '123'
|
||
|
===*/
|
||
|
|
||
|
void test(duk_context *ctx) {
|
||
|
duk_compile_string(ctx, 0, "print('program code'); 123");
|
||
|
duk_call(ctx, 0);
|
||
|
printf("return value is: '%s'\n", duk_to_string(ctx, -1));
|
||
|
duk_pop(ctx);
|
||
|
}
|
||
|
|