*Massive cleanup (\n\n -> \n, *\n -> \n, cleanup for(...) to for (...), and some other cleanups by hand)
*Fix a possible crash in Spell::DoAllEffectOnTarget --HG-- branch : trunk
This commit is contained in:
@@ -1,5 +1,4 @@
|
||||
// -*- C++ -*-
|
||||
|
||||
//=============================================================================
|
||||
/**
|
||||
* @file Trace.h
|
||||
@@ -9,20 +8,14 @@
|
||||
* @author Douglas C. Schmidt <[email protected]>
|
||||
*/
|
||||
//=============================================================================
|
||||
|
||||
#ifndef ACE_TRACE_H
|
||||
#define ACE_TRACE_H
|
||||
|
||||
#include /**/ "ace/pre.h"
|
||||
|
||||
#include /**/ "ace/ACE_export.h"
|
||||
|
||||
#if !defined (ACE_LACKS_PRAGMA_ONCE)
|
||||
# pragma once
|
||||
#endif /* ACE_LACKS_PRAGMA_ONCE */
|
||||
|
||||
ACE_BEGIN_VERSIONED_NAMESPACE_DECL
|
||||
|
||||
/**
|
||||
* @class ACE_Trace
|
||||
*
|
||||
@@ -37,50 +30,37 @@ class ACE_Export ACE_Trace
|
||||
{
|
||||
public:
|
||||
// = Initialization and termination methods.
|
||||
|
||||
/// Perform the first part of the trace, which prints out the string
|
||||
/// N, the LINE, and the ACE_FILE as the function is entered.
|
||||
ACE_Trace (const ACE_TCHAR *n,
|
||||
int line = 0,
|
||||
const ACE_TCHAR *file = ACE_TEXT (""));
|
||||
|
||||
/// Perform the second part of the trace, which prints out the NAME
|
||||
/// as the function is exited.
|
||||
~ACE_Trace (void);
|
||||
|
||||
// = Control the tracing level.
|
||||
/// Determine if tracing is enabled (return == 1) or not (== 0)
|
||||
static int is_tracing(void);
|
||||
|
||||
/// Enable the tracing facility.
|
||||
static void start_tracing (void);
|
||||
|
||||
/// Disable the tracing facility.
|
||||
static void stop_tracing (void);
|
||||
|
||||
/// Change the nesting indentation level.
|
||||
static void set_nesting_indent (int indent);
|
||||
|
||||
/// Get the nesting indentation level.
|
||||
static int get_nesting_indent (void);
|
||||
|
||||
/// Dump the state of an object.
|
||||
void dump (void) const;
|
||||
|
||||
private:
|
||||
// Keeps track of how deeply the call stack is nested (this is
|
||||
// maintained in thread-specific storage to ensure correctness in
|
||||
// multiple threads of control.
|
||||
|
||||
/// Name of the method we are in.
|
||||
const ACE_TCHAR *name_;
|
||||
|
||||
/// Keeps track of how far to indent per trace call.
|
||||
static int nesting_indent_;
|
||||
|
||||
/// Is tracing enabled?
|
||||
static int enable_tracing_;
|
||||
|
||||
/// Default values.
|
||||
enum
|
||||
{
|
||||
@@ -88,10 +68,7 @@ private:
|
||||
DEFAULT_TRACING = 1
|
||||
};
|
||||
};
|
||||
|
||||
ACE_END_VERSIONED_NAMESPACE_DECL
|
||||
|
||||
#include /**/ "ace/post.h"
|
||||
|
||||
#endif /* ACE_TRACE_H */
|
||||
|
||||
|
||||
Reference in New Issue
Block a user