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 * ====================================================== */
23 Trace(string const & s) : str(s) {
24 lyxerr << string(depth, ' ') << "TRACE IN: "
32 lyxerr << string(depth, ' ') << "TRACE OUT: "
42 // To avoid wrong usage:
43 // Trace("BufferView::update"); // wrong
44 // Trace t("BufferView::update"); // right
47 #define Trace(x) unnamed_Trace;
48 // Tip gotten from Bobby Schmidt's column in C/C++ Users Journal