[CEGUI Update] Exception type, line & file info
Posted: 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:
- 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.
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.