diff options
| author | Jon A. Cruz <jon@joncruz.org> | 2008-06-07 04:02:08 +0000 |
|---|---|---|
| committer | joncruz <joncruz@users.sourceforge.net> | 2008-06-07 04:02:08 +0000 |
| commit | b4fcb99e990737a8f40253f8f70f227733bf92ee (patch) | |
| tree | a933eca0cb127bb68cbbe0bab85a0e99485c52b6 /src/display/curve.cpp | |
| parent | ellipses and groups now use 2geompath for svg_write: sp_svg_write_path(np->cu... (diff) | |
| download | inkscape-b4fcb99e990737a8f40253f8f70f227733bf92ee.tar.gz inkscape-b4fcb99e990737a8f40253f8f70f227733bf92ee.zip | |
Warning cleanup
(bzr r5847)
Diffstat (limited to 'src/display/curve.cpp')
| -rw-r--r-- | src/display/curve.cpp | 20 |
1 files changed, 14 insertions, 6 deletions
diff --git a/src/display/curve.cpp b/src/display/curve.cpp index 2ca244388..4144bb623 100644 --- a/src/display/curve.cpp +++ b/src/display/curve.cpp @@ -39,22 +39,25 @@ static bool sp_bpath_closed(NArtBpath const bpath[]); #define NO_CHECKS // define this to disable the checking for unequal paths in SPCurve, improves performance by a lot! -static void debug_out( char const * text, Geom::PathVector const & pathv) { + #ifndef NO_CHECKS +static void debug_out( char const * text, Geom::PathVector const & pathv) { char * str = sp_svg_write_path(pathv); g_message("%s : %s", text, str); g_free(str); -#endif } -static void debug_out( char const * text, NArtBpath const * bpath) { +#endif + #ifndef NO_CHECKS +static void debug_out( char const * text, NArtBpath const * bpath) { char * str = sp_svg_write_path(bpath); g_message("%s : %s", text, str); g_free(str); -#endif } -void SPCurve::debug_check( char const * text, SPCurve const * curve) { +#endif + #ifndef NO_CHECKS +void SPCurve::debug_check( char const * text, SPCurve const * curve) { char * pathv_str = sp_svg_write_path(curve->_pathv); char * bpath_str = sp_svg_write_path(curve->_bpath); if ( strcmp(pathv_str, bpath_str) ) { @@ -64,13 +67,18 @@ void SPCurve::debug_check( char const * text, SPCurve const * curve) { } g_free(pathv_str); g_free(bpath_str); +#else +void SPCurve::debug_check( char const *, SPCurve const *) { #endif } -void SPCurve::debug_check( char const * text, bool a) { + #ifndef NO_CHECKS +void SPCurve::debug_check( char const * text, bool a) { if ( !a ) { g_message("%s : bool fail", text); } +#else +void SPCurve::debug_check( char const *, bool) { #endif } |
