Advertisement

AS_64BIT_PTR

Started by July 21, 2012 06:40 PM
3 comments, last by WitchLord 12 years, 4 months ago
The internal header as_config.h has:
// Is the target a 64bit system?
#if defined(__LP64__) || defined(__amd64__) || defined(__x86_64__) || defined(_M_X64)
#ifndef AS_64BIT_PTR
#define AS_64BIT_PTR
#endif
#endif


But this isn't defined in angelscript.h. Is that intentional?
The AS_64BIT_PTR symbol isn't used in angelscript.h, and I do not want to clutter the header file with a lot of unused stuff.

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

Advertisement
Not for regular users, but JIT people will run into an issue with AS_PTR_SIZE being a different size in files which include angelscript.h. Is that whole code block needed for regular users? IMO the JIT needs to be so tied in with AngelScript so it'll most likely include the AngelScript internal headers anyway and thus it could be moved from the public header to an internal one.
I see now what you mean. This must be a left over from when I moved the bytecode definition to the angelscript.h header.

I'll have it fixed.

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

Change checked in to revision 1369.

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