[CEGUI Update] Exception type, line & file info

Discussion regarding the development of CEGUI itself - as opposed to questions about CEGUI usage that should be in the help forums.

Moderators: CEGUI MVP, CEGUI Team

User avatar
fjeronimo
CEGUI Tools Developer (Retired)
Posts: 59
Joined: Tue Sep 11, 2007 16:57
Location: Lisbon, Portugal
Contact:

[CEGUI Update] Exception type, line & file info

Postby fjeronimo » Sat Nov 10, 2007 01:33

Hi everyone,

I committed a new update to CEGUI SVN trunk.

- New: Exception type, file name and line number - Added type, file name and line number to all thrown exceptions which will make it much easier to debug and correct any problems found. With these modifications, exceptions will appear as such in the logger:

Code: Select all

09/11/2007 16:03:44 (Error) CEGUI::AlreadyExistsException in file e:\dev\ceguitests\cegui\src\ceguischeme_xmlhandler.cpp(153) : A GUI Scheme named 'TaharezLook' is already present in the system.

- Change: Premake VS2003 & VS2002 __LINE__ macro fix - Changed ALL premake lua files to correct a bug found in VS2003 and below (see http://support.microsoft.com/kb/199057/en) which leads to incorrect __LINE__ macro expansion if used inside a function and compiled with "Program Database for Edit & Continue" (/ZI) where instead of a constant expressing line number you'll get the following: (__LINE__Var+constant). The workaround consists in using compiler option "Program Database" (/Zi) instead --> Project Properties\C/C++\General\Debug Information Format\Program Database (/Zi). VS2005 corrects the problem, so no concerns there.


Have fun and let me know what you think.
Frederico Jerónimo
Ignite Games - http://www.ignite-games.com
Ignite Games Institutional Site - http://we.ignite-games.com

Pompei2
Home away from home
Home away from home
Posts: 489
Joined: Tue May 23, 2006 16:31

Postby Pompei2 » Sat Nov 10, 2007 23:11

cool :)

User avatar
fjeronimo
CEGUI Tools Developer (Retired)
Posts: 59
Joined: Tue Sep 11, 2007 16:57
Location: Lisbon, Portugal
Contact:

Postby fjeronimo » Fri Nov 23, 2007 09:44

I'm glad you liked Pompei2. Stay tuned for more changes... :)
Frederico Jerónimo

Ignite Games - http://www.ignite-games.com

Ignite Games Institutional Site - http://we.ignite-games.com


Return to “CEGUI Library Development Discussion”

Who is online

Users browsing this forum: No registered users and 1 guest