]> git.mxchange.org Git - simgear.git/commitdiff
add a property debugging function
authorTim Moore <timoore@redhat.com>
Thu, 26 Nov 2009 09:38:31 +0000 (10:38 +0100)
committerTim Moore <timoore@redhat.com>
Thu, 26 Nov 2009 09:38:31 +0000 (10:38 +0100)
simgear/props/props_io.cxx

index 622ef367a348de9d5e4922f175f5dd586c0ade4d..48244c7b11ee7cea442681e0944638cd6828cbd0 100644 (file)
@@ -602,6 +602,13 @@ writeProperties (const string &file, const SGPropertyNode * start_node,
   }
 }
 
+// Another variation, useful when called from gdb
+void
+writeProperties (const char* file, const SGPropertyNode * start_node)
+{
+    writeProperties(string(file), start_node, true);
+}
+
 
 \f
 ////////////////////////////////////////////////////////////////////////