🎉 Celebrating 25 Years of GameDev.net! 🎉

Not many can claim 25 years on the Internet! Join us in celebrating this milestone. Learn more about our history, and thank you for being a part of our community!

SetMessageCallback and asCALL_GENERIC...

Started by
1 comment, last by mono2k 17 years, 3 months ago
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?
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

AngelCode.com - game development and more - Reference DB - game developer references
AngelScript - free scripting library - BMFont - free bitmap font generator - Tower - free puzzle game

Thanks, I like AS more and more... :-)

This topic is closed to new replies.

Advertisement