]> git.lyx.org Git - lyx.git/blobdiff - src/support/debug.h
Add quote style information to languages
[lyx.git] / src / support / debug.h
index fc7f72eff4b9313118e88f73dd1ad5d299bdbbd1..a883e67d74c86c69a2ce571e3a9ea46fbe9f94df 100644 (file)
@@ -124,6 +124,7 @@ namespace Debug {
        /// Show all the possible tags that can be used for debugging
        void showTags(std::ostream & os);
 
+
 } // namespace Debug
 
 
@@ -170,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_;
@@ -207,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) \