Show
Ignore:
Timestamp:
04/13/09 11:35:52 (4 years ago)
Author:
robert
Message:

From Santosh Gaikwad, "I have added the exception handling in ply loader. All exceptions I am catching in VertexData::readPlyFile() and made sure that application will not crash or exit if any exception occurred. I am returning NULL from VertexData::readPlyFile() if any exception occurred.
"

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • OpenSceneGraph/trunk/src/osgPlugins/ply/typedefs.h

    r10012 r10040  
    2020#   include <osg/Notify> 
    2121#    include <cassert> 
    22 #   define MESHASSERT  assert 
     22 
     23#ifdef NDEBUG 
     24#   define MESHASSERT( x ) 
     25#else 
     26#    define MESHASSERT(x) { if( !(x) )                                      \ 
     27              osg::notify(osg::WARN) << "Ply Loader ##### Assert: " << #x << " #####" << std::endl; } 
     28#endif 
     29 
    2330#   define MESHERROR   osg::notify(osg::WARN) 
    2431#   define MESHWARN    osg::notify(osg::WARN)