summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 250ebd3)
raw | patch | inline | side by side (parent: 250ebd3)
author | joncruz <joncruz@users.sourceforge.net> | |
Sat, 7 Jun 2008 04:02:08 +0000 (04:02 +0000) | ||
committer | joncruz <joncruz@users.sourceforge.net> | |
Sat, 7 Jun 2008 04:02:08 +0000 (04:02 +0000) |
src/display/curve.cpp | patch | blob | history |
diff --git a/src/display/curve.cpp b/src/display/curve.cpp
index 2ca24438825a731199b6b3699edd2cb1db570264..4144bb623f340346d98abbe497b0111181a5c0e7 100644 (file)
--- a/src/display/curve.cpp
+++ b/src/display/curve.cpp
#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) ) {
}
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
}