ERR : Unexpected token '?'
I register it using the following:
obj.addMethod("String@ Compose(const String &in, ?&in)", asFUNCTION(Compose1), asCALL_CDECL_OBJLAST); obj.addMethod("String@ Compose(const String &in, ?&in, ?&in)", asFUNCTION(Compose2), asCALL_CDECL_OBJLAST); obj.addMethod("String@ Compose(const String &in, ?&in, ?&in, ?&in)", asFUNCTION(Compose3), asCALL_CDECL_OBJLAST); obj.addMethod("String@ Compose(const String &in, ?&in, ?&in, ?&in, ?&in)", asFUNCTION(Compose4), asCALL_CDECL_OBJLAST); obj.addMethod("String@ Compose(const String &in, ?&in, ?&in, ?&in, ?&in, ?&in)", asFUNCTION(Compose5), asCALL_CDECL_OBJLAST); obj.addMethod("String@ Compose(const String &in, ?&in, ?&in, ?&in, ?&in, ?&in, ?&in)", asFUNCTION(Compose6), asCALL_CDECL_OBJLAST); obj.addMethod("String@ Compose(const String &in, ?&in, ?&in, ?&in, ?&in, ?&in, ?&in, ?&in)", asFUNCTION(Compose7), asCALL_CDECL_OBJLAST); obj.addMethod("String@ Compose(const String &in, ?&in, ?&in, ?&in, ?&in, ?&in, ?&in, ?&in, ?&in)", asFUNCTION(Compose8), asCALL_CDECL_OBJLAST); obj.addMethod("String@ Compose(const String &in, ?&in, ?&in, ?&in, ?&in, ?&in, ?&in, ?&in, ?&in, ?&in)", asFUNCTION(Compose9), asCALL_CDECL_OBJLAST); obj.addMethod("String@ Compose(const String &in, ?&in, ?&in, ?&in, ?&in, ?&in, ?&in, ?&in, ?&in, ?&in, ?&in)", asFUNCTION(Compose10), asCALL_CDECL_OBJLAST); obj.addMethod("String@ Compose(const String &in, ?&in, ?&in, ?&in, ?&in, ?&in, ?&in, ?&in, ?&in, ?&in, ?&in, ?&in)", asFUNCTION(Compose11), asCALL_CDECL_OBJLAST);
The addMethod function just wraps RegisterObjectMethod and checks the return code. So my question is this a limit for a reason? If so maybe you should check the number used and make RegisterObjectMethod fail.