mirror of
https://github.com/joncampbell123/dosbox-x.git
synced 2025-10-18 08:52:12 +08:00
more
This commit is contained in:
@@ -52,6 +52,12 @@ SQInteger hello1(HSQUIRRELVM v) {
|
|||||||
sq_getstring(v,n,&i);
|
sq_getstring(v,n,&i);
|
||||||
printf("\"%s\" ",(const char*)i);
|
printf("\"%s\" ",(const char*)i);
|
||||||
} break;
|
} break;
|
||||||
|
case OT_CLOSURE: {
|
||||||
|
printf("(closure) ");
|
||||||
|
} break;
|
||||||
|
case OT_NATIVECLOSURE: {
|
||||||
|
printf("(native closure) ");
|
||||||
|
} break;
|
||||||
default:
|
default:
|
||||||
break;
|
break;
|
||||||
};
|
};
|
||||||
|
@@ -35,3 +35,5 @@ hello1(23.44);
|
|||||||
hello1("Hello world");
|
hello1("Hello world");
|
||||||
hello1(1,2,3,4);
|
hello1(1,2,3,4);
|
||||||
hello1(1,2.3,"4");
|
hello1(1,2.3,"4");
|
||||||
|
hello1(hello1);
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user