2 /* This file is part of
3 * ======================================================
5 * LyX, The Document Processor
7 * Copyright 1995 Matthias Ettrich
8 * Copyright 1995-2001 The LyX Team.
10 * ====================================================== */
27 Trace(string const & s) : str(s) {
28 lyxerr << string(depth, ' ') << "TRACE IN: "
36 lyxerr << string(depth, ' ') << "TRACE OUT: "
46 // To avoid wrong usage:
47 // Trace("BufferView::update"); // wrong
48 // Trace t("BufferView::update"); // right
51 #define Trace(x) unnamed_Trace;
52 // Tip gotten from Bobby Schmidt's column in C/C++ Users Journal