aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorMITSUNARI Shigeo <[email protected]>2020-07-21 11:55:14 +0900
committerMITSUNARI Shigeo <[email protected]>2020-07-21 11:55:14 +0900
commit7cdf227f259aa592df45259b32d8d3cc10c155b6 (patch)
tree4f19d2f1c94f6faf6c5508462e2355828bf61ef5
parent38a28dece4e8fa94696a7aa3feaede21745b3977 (diff)
downloadxbyak-7cdf227f259aa592df45259b32d8d3cc10c155b6.tar.gz
xbyak-7cdf227f259aa592df45259b32d8d3cc10c155b6.zip
use static to avoid multiple instance
-rw-r--r--xbyak/xbyak.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/xbyak/xbyak.h b/xbyak/xbyak.h
index fdf9e91..e7ed466 100644
--- a/xbyak/xbyak.h
+++ b/xbyak/xbyak.h
@@ -258,7 +258,7 @@ inline const char *ConvertErrorToString(int err)
#ifdef XBYAK_NOEXCEPTION
namespace local {
-XBYAK_TLS int l_err = 0;
+static XBYAK_TLS int l_err = 0;
inline void SetError(int err) { if (err) l_err = err; } // keep the first err code
} // local