Sign in to follow this  

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

This topic is 2044 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

Hello![img]http://public.gamedev.net//public/style_emoticons/default/smile.png[/img]
how do know param typeId is '@' or '@&' ? In that code:

[CODE]

asIScriptFunction *func = ...

for( int i =0; i < func->GetParamCount(); i++ )
{
int type_id = func->GetParamTypeId( i );

if( type_id & asTYPEID_OBJHANDLE )
{
}
}[/CODE] Edited by FDsagizi

Share this post


Link to post
Share on other sites
[code]

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
}
[/code]

Share this post


Link to post
Share on other sites
[color=#282828][font=helvetica, arial, verdana, tahoma, sans-serif][size=3][left][background=rgb(250, 251, 252)]Thanks![/background][/left][/size][/font][/color]

Share this post


Link to post
Share on other sites

This topic is 2044 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this