Jump to content
  • Advertisement
Sign in to follow this  
mono2k

SetMessageCallback and asCALL_GENERIC...

This topic is 4285 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.

GameDev.net is your game development community. Create an account for your GameDev Portfolio and participate in the largest developer community in the games industry.

Sign me up!