/// Show all the possible tags that can be used for debugging
void showTags(std::ostream & os);
+
} // namespace Debug
/// 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_;
# 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) \