commit | 7cdf227f259aa592df45259b32d8d3cc10c155b6 | [log] [tgz] |
---|---|---|
author | MITSUNARI Shigeo <herumi@nifty.com> | Tue Jul 21 11:55:14 2020 +0900 |
committer | MITSUNARI Shigeo <herumi@nifty.com> | Tue Jul 21 11:55:14 2020 +0900 |
tree | 4f19d2f1c94f6faf6c5508462e2355828bf61ef5 | |
parent | 38a28dece4e8fa94696a7aa3feaede21745b3977 [diff] |
use static to avoid multiple instance
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 @@ #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