Skip to main content
GameDev.net gamedev.net
🔒 Locked

AngelScript exceptions

Started by SiCrane Apr 24, 2009 at 11:51 AM 3 replies 2k views
Original Post
SiCrane
SiCrane
Right now the behavior of AngelScript exceptions is that when an exception is raised, the context first calls the exception callback and then cleans the stack. Would it be possible to delay cleaning the stack until Abort() is called?
WitchLord
WitchLord
Yes. I believe that should be possible. I'll look into this.
AngelCode.com - game development and more - Reference DB - game developer references
AngelScript - free scripting library - BMFont - free bitmap font generator - <a href="http://www.angelcode.com/tower" rel
SiCrane
SiCrane
Thanks, that would make debugging exceptions a lot easier.
WitchLord
WitchLord
Done!

The callstack after an exception is now only cleaned up when one of the following occurs, 1. call to Prepare(), 2. call to Unprepare(), or the context is destroyed.

AngelCode.com - game development and more - Reference DB - game developer references
AngelScript - free scripting library - BMFont - free bitmap font generator - <a href="http://www.angelcode.com/tower" rel
SiCrane
SiCrane
Great. Works like a charm.

Topic Locked

This topic has been locked by a moderator. New replies are not allowed.

Sign in to reply to this topic.