aboutsummaryrefslogtreecommitdiff
path: root/butl/utility.cxx
blob: d6845536110ebf592405902ed46a6b9f61263707 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
// file      : butl/utility.cxx -*- C++ -*-
// copyright : Copyright (c) 2014-2017 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;

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

#endif
}