how do know param typeId is '@' or '@&' ? In that code:
asIScriptFunction *func = ...
for( int i =0; i < func->GetParamCount(); i++ )
{
int type_id = func->GetParamTypeId( i );
if( type_id & asTYPEID_OBJHANDLE )
{
}
}
asIScriptFunction *func = ...
for( int i =0; i < func->GetParamCount(); i++ )
{
int type_id = func->GetParamTypeId( i );
if( type_id & asTYPEID_OBJHANDLE )
{
}
}
asIScriptFunction *func = ...
for( int i =0; i < func->GetParamCount(); i++ )
{
asDWORD flags;
int type_id = func->GetParamTypeId( i, &flags );
if( flags == asTM_NONE ) // by value
if( flags == asTM_INREF ) // &in
if( flags == asTM_OUTREF ) // &out
if( flags == asTM_INOUTREF ) // &inout
}
AngelCode.com - game development and more - Reference DB - game developer references
AngelScript - free scripting library - BMFont - free bitmap font generator - Tower - free puzzle game