Jump to content
  • Advertisement
Sign in to follow this  
Drew_Benton

Possible bug in a defined constant?

This topic is 4685 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

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!

Share this post


Link to post
Share on other sites
Advertisement
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

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.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!