🎉 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!

AS_MAX_PORTABILITY and asBEHAVE_ALLOC

Started by
2 comments, last by WitchLord 18 years, 1 month ago
Why aren't asBEHAVE_ALLOC and asBEHAVE_FREE supported in AS_MAX_PORTABILITY mode? Yiannis.
Advertisement
They should be. I'll make some tests to verify this.

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

Quote: Original post by WitchLord
They should be. I'll make some tests to verify this.


Yes, I thought so :)
No need for tests though:

	if( behaviour == asBEHAVE_ALLOC || behaviour == asBEHAVE_FREE )	{		if( callConv != asCALL_CDECL ) return ConfigError(asNOT_SUPPORTED);		int r = DetectCallingConvention(false, funcPointer, callConv, &internal);		if( r < 0 )			return ConfigError(r);	}


Yiannis.
I had forgotten about that. I'll have to update the manual to clarify this. :)

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

This topic is closed to new replies.

Advertisement