Advertisement

How do know typeId is "@" or "@&"

Started by May 13, 2012 11:17 AM
1 comment, last by FDsagizi 12 years, 6 months ago
Hello!smile.png
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++ )
{
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

Advertisement
[color=#282828][font=helvetica, arial, verdana, tahoma, sans-serif]

[background=rgb(250, 251, 252)]Thanks![/background]

[/font]

This topic is closed to new replies.

Advertisement