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.
11 lines
209 B
11 lines
209 B
11 years ago
|
/*===
|
||
|
Hello world from Ecmascript!
|
||
|
Hello world from C!
|
||
|
===*/
|
||
|
|
||
|
void test(duk_context *ctx) {
|
||
|
duk_push_string(ctx, "print('Hello world from Ecmascript!');");
|
||
|
duk_eval(ctx);
|
||
|
printf("Hello world from C!\n");
|
||
|
}
|