aboutsummaryrefslogtreecommitdiff
path: root/butl/utility.cxx
blob: f64e7c8121028d8379e294924e073ce2fc1490f3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
// file      : butl/utility.cxx -*- C++ -*-
// copyright : Copyright (c) 2014-2016 Code Synthesis Ltd
// license   : MIT; see accompanying LICENSE file

#include <butl/utility>

namespace butl
{
#ifndef BUTL_CXX17_UNCAUGHT_EXCEPTIONS
#ifdef BUTL_CXX11_THREAD_LOCAL
  thread_local
#else
  __thread
#endif
  bool exception_unwinding_dtor_ = false;
#endif

#ifdef _WIN32
  bool&
  exception_unwinding_dtor () {return exception_unwinding_dtor_;}
#endif
}