forked from ground/ground
Methods inside objects
This commit is contained in:
@@ -291,7 +291,7 @@ bool checkForErrors(GroundProgram* program) {
|
||||
CHECK_ARG_TYPE(instruction->args.length - 1, DIRREF);
|
||||
break;
|
||||
|
||||
// call &object !methodName [$arg1 $arg2 ...] &returnVal
|
||||
// callmethod &object !methodName [$arg1 $arg2 ...] &returnVal
|
||||
// Minimum 3 args: object ref, method name, return variable
|
||||
case CALLMETHOD:
|
||||
CHECK_ARGC_MIN(3);
|
||||
|
||||
Reference in New Issue
Block a user