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.
14 lines
227 B
14 lines
227 B
12 years ago
|
/*===
|
||
|
result: foo123true
|
||
|
===*/
|
||
|
|
||
|
void test(duk_context *ctx) {
|
||
|
duk_push_string(ctx, "foo");
|
||
|
duk_push_int(ctx, 123);
|
||
|
duk_push_true(ctx);
|
||
|
duk_concat(ctx, 3);
|
||
|
|
||
|
printf("result: %s\n", duk_get_string(ctx, -1));
|
||
|
duk_pop(ctx);
|
||
|
}
|