1 /* $NoKeywords: $ */ 2 /* 3 // 4 // Copyright (c) 1993-2012 Robert McNeel & Associates. All rights reserved. 5 // OpenNURBS, Rhinoceros, and Rhino3D are registered trademarks of Robert 6 // McNeel & Associates. 7 // 8 // THIS SOFTWARE IS PROVIDED "AS IS" WITHOUT EXPRESS OR IMPLIED WARRANTY. 9 // ALL IMPLIED WARRANTIES OF FITNESS FOR ANY PARTICULAR PURPOSE AND OF 10 // MERCHANTABILITY ARE HEREBY DISCLAIMED. 11 // 12 // For complete openNURBS copyright information see <http://www.opennurbs.org>. 13 // 14 //////////////////////////////////////////////////////////////// 15 */ 16 17 #include "pcl/surface/3rdparty/opennurbs/opennurbs.h" 18 19 ON_ErrorMessage(int,const char * sErrorMessage)20void ON_ErrorMessage( 21 int, // 0=warning - serious problem that code is designed to handle 22 // 1=error - serious problem code will attempt to handle 23 // The thing causing the error is a bug that must 24 // be fixed. 25 // 2=assert failed - crash is nearly certain 26 const char* sErrorMessage 27 ) 28 { 29 // error/warning/assert message is in sMessage[] buffer. Modify this function 30 // to do whatever you want to with the message. 31 if ( sErrorMessage && sErrorMessage[0] ) 32 { 33 34 #if defined(ON_PURIFY_BUILD) && defined(ON_32BIT_POINTER) 35 // 10 December 2003 Dale Lear 36 // Make ON_ERROR/ON_WARNING messages show up in Purify 37 PurifyPrintf("%s",sErrorMessage); 38 #endif 39 40 #if defined(ON_OS_WINDOWS) 41 ::OutputDebugStringA( "\n" ); 42 ::OutputDebugStringA( sErrorMessage ); 43 ::OutputDebugStringA( "\n" ); 44 #else 45 #if defined(ON__DEBUG) 46 // not using OutputDebugStringA 47 printf("\n%s\n",sErrorMessage); 48 #endif 49 #endif 50 } 51 } 52