diff options
author | MITSUNARI Shigeo <[email protected]> | 2020-07-21 11:55:14 +0900 |
---|---|---|
committer | MITSUNARI Shigeo <[email protected]> | 2020-07-21 11:55:14 +0900 |
commit | 7cdf227f259aa592df45259b32d8d3cc10c155b6 (patch) | |
tree | 4f19d2f1c94f6faf6c5508462e2355828bf61ef5 | |
parent | 38a28dece4e8fa94696a7aa3feaede21745b3977 (diff) | |
download | xbyak-7cdf227f259aa592df45259b32d8d3cc10c155b6.tar.gz xbyak-7cdf227f259aa592df45259b32d8d3cc10c155b6.zip |
use static to avoid multiple instance
-rw-r--r-- | xbyak/xbyak.h | 2 |
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 |