Changeset 127:8e14ba59af80 in rrlib_util


Ignore:
Timestamp:
11.05.2015 15:06:36 (5 years ago)
Author:
Max Reichardt <mreichardt@…>
Branch:
default
Phase:
public
Message:

Introduces RRLIB_UTIL_EXCEPTION_DISABLE_TRACING define to disable tracing on incompatible platforms

File:
1 edited

Legend:

Unmodified
Added
Removed
  • exception/tTraceableExceptionBase.cpp

    r119 r127  
    8383// Implementation 
    8484//---------------------------------------------------------------------- 
    85  
    86 #if __linux__ 
     85#ifndef __linux__ 
     86#define RRLIB_UTIL_EXCEPTION_DISABLE_TRACING 
     87#endif 
     88 
     89#ifndef RRLIB_UTIL_EXCEPTION_DISABLE_TRACING 
    8790namespace 
    8891{ 
     
    251254//---------------------------------------------------------------------- 
    252255tTraceableExceptionBase::tTraceableExceptionBase() : 
    253 #if defined(NDEBUG) || !__linux__ 
     256#if defined(NDEBUG) || defined(RRLIB_UTIL_EXCEPTION_DISABLE_TRACING) 
    254257  stack_trace_depth(0) 
    255258{} 
     
    280283  } 
    281284 
    282 #if __linux__ 
     285#ifndef RRLIB_UTIL_EXCEPTION_DISABLE_TRACING 
    283286  if (this->buffered_backtrace.empty()) 
    284287  { 
Note: See TracChangeset for help on using the changeset viewer.