[mapguide-trac] #104: MapGuide source code needs an MG_ASSERT macro

MapGuide Open Source trac_mapguide at osgeo.org
Mon May 7 19:49:57 EDT 2007


#104: MapGuide source code needs an MG_ASSERT macro
------------------------------+---------------------------------------------
   Reporter:  waltweltonlair  |       Owner:     
       Type:  task            |      Status:  new
   Priority:  medium          |   Milestone:  1.3
  Component:  General         |     Version:     
   Severity:  minor           |    Keywords:     
External_id:                  |  
------------------------------+---------------------------------------------
 We current use a mix of _ASSERT(), assert(), and possibly others in our
 code.  _ASSERT() works fine for Windows, but is not defined on Linux.
 assert() is defined on both Windows and Linux, but it will terminate the
 process if the assert fails (which is not the behavior we want).

 We need to create an MG_ASSERT macro that checks the supplied condition
 only in Debug.  If the check is false then a message box is displayed.
 Once closed the application continues running.

-- 
Ticket URL: <https://trac.osgeo.org/mapguide/ticket/104>
MapGuide Open Source <http://mapguide.osgeo.org/>
MapGuide Open Source Internals


More information about the mapguide-trac mailing list