Jump to content
  • Advertisement
Sign in to follow this  
Miss

Passing funcdefs behavior changed?

This topic is 772 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

Not sure if this is a bug or if we've been getting functions from generic parameters the wrong way this whole time.

 

Say we have a funcdef "void SomeFuncdef()", and we have an engine function registered as "void DoSomething(SomeFuncdef@ foo)" with asCALL_GENERIC.

 

In the function we were previously using something like (asIScriptFunction*)gen->GetArgObject(0), which now doesn't work anymore since 2.31.0 (and also the latest WIP SVN revision) says that funcdef types are not objects. We can fix this by using GetArgAddress() instead. Is this the intended way of doing things?

 

Thanks!

Share this post


Link to post
Share on other sites
Advertisement

I'll need to investigate this. I was pretty sure I had already fixed a bug like this in the latest WIP SVN revision, but you say the bug persists so I guess this is a slightly different case.

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!