Possible bug in a defined constant?
On line 656 of angelscript.h, there is:
const char * const asALL_MODULES = (const char * const)-1;
However, I noticed in your posts, you use 0 to represent 'all modules' if I was reading that correctly. If I use that asALL_MODULES in functions such as GetFunctionIDByDecl, Build, and AddScriptSection, my program crashes, but if I use 0, it works fine.
Is this a bug or am I just not using that define correctly? If I'm not using that define correctly, what is it for then? Thanks!
Actually 0 is the module with the name "".
asALL_MODULES can only be used with SetModuleAccess(). In which case it means that the access configuration will be the default for all modules unless specified specifically by the individual module.
Regards,
Andreas
asALL_MODULES can only be used with SetModuleAccess(). In which case it means that the access configuration will be the default for all modules unless specified specifically by the individual module.
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
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement