use static to avoid multiple instance

This commit is contained in:
MITSUNARI Shigeo 2020-07-21 11:55:14 +09:00
parent 38a28dece4
commit 7cdf227f25

View file

@ -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