Jump to content
  • Advertisement
Sign in to follow this  
mono2k

SetMessageCallback and asCALL_GENERIC...

This topic is 4198 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! I've just realized that I can't set the message callback function using asCALL_GENERIC calling convention. Why?? I use angelscript in the maximum portability mode, how do I log AS compiler messages?

Share this post


Link to post
Share on other sites
Advertisement
Just use a normal C global function or a C++ class method, with cdecl or thiscall calling conventions. This works even in max portability mode because the message callback is not called via the VM, and doesn't need assembly routines to be adapted.

Regards,
Andreas

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!