mirror of
https://github.com/herumi/xbyak
synced 2024-11-20 16:06:14 -07:00
use static to avoid multiple instance
This commit is contained in:
parent
38a28dece4
commit
7cdf227f25
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue