]> git.lyx.org Git - lyx.git/blobdiff - src/support/debug.h
Remove warning
[lyx.git] / src / support / debug.h
index 3835242b366f7e3e34e35f4ce9fd530857afeb80..4d5038de7d25acb7787dda4c874dcd4dbd5d5e37 100644 (file)
@@ -124,8 +124,6 @@ namespace Debug {
        /// Show all the possible tags that can be used for debugging
        void showTags(std::ostream & os);
 
-       /// Print simple callstack to stderr
-       void printCallStack();
 
 } // namespace Debug
 
@@ -159,7 +157,7 @@ public:
        bool enabled() const { return enabled_; }
 
        /// Returns second stream
-       std::ostream & secondStream() { return *second_stream_; };
+       std::ostream & secondStream() { return *second_stream_; }
        /// Sets second stream
        void setSecondStream(std::ostream * os) 
                { second_enabled_ = (second_stream_ = os); }
@@ -173,6 +171,9 @@ public:
        /// Returns true if t is part of the current debug level
        bool debugging(Debug::Type t = Debug::ANY) const;
 
+       ///
+       static char const * stripName(char const *);
+
 private:
        /// The current debug level
        Debug::Type dt_;
@@ -210,7 +211,7 @@ extern LyXErr lyxerr;
 #      include <boost/current_function.hpp>
 #      define CURRENT_POSITION BOOST_CURRENT_FUNCTION ": "
 #else
-# define CURRENT_POSITION __FILE__ << "(" << __LINE__ << "): "
+# define CURRENT_POSITION lyx::LyXErr::stripName(__FILE__) << " (" << __LINE__ << "): "
 #endif
 
 #define LYXERR(type, msg) \