This commit is contained in:
Jonathan Campbell
2019-03-26 14:23:03 -07:00
parent 065e97ed2a
commit 74c73b7f0e
2 changed files with 8 additions and 0 deletions

View File

@@ -52,6 +52,12 @@ SQInteger hello1(HSQUIRRELVM v) {
sq_getstring(v,n,&i);
printf("\"%s\" ",(const char*)i);
} break;
case OT_CLOSURE: {
printf("(closure) ");
} break;
case OT_NATIVECLOSURE: {
printf("(native closure) ");
} break;
default:
break;
};

View File

@@ -35,3 +35,5 @@ hello1(23.44);
hello1("Hello world");
hello1(1,2,3,4);
hello1(1,2.3,"4");
hello1(hello1);