diff options
author | MITSUNARI Shigeo <[email protected]> | 2022-05-13 17:19:59 +0900 |
---|---|---|
committer | MITSUNARI Shigeo <[email protected]> | 2022-05-13 17:26:44 +0900 |
commit | 30144f80911103cfef5379a1e3c79ade81190d6a (patch) | |
tree | e2728bf5e6894a4a655b8981cb210de60bf2cba8 | |
parent | ec15751df2fdf9d436c8acb154a0cfbcf7f26c0f (diff) | |
download | xbyak-30144f80911103cfef5379a1e3c79ade81190d6a.tar.gz xbyak-30144f80911103cfef5379a1e3c79ade81190d6a.zip |
fix error when XBYAK_NO_EXCEPTION is defined
-rw-r--r-- | xbyak/xbyak.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/xbyak/xbyak.h b/xbyak/xbyak.h index 4f87826..9ababa3 100644 --- a/xbyak/xbyak.h +++ b/xbyak/xbyak.h @@ -293,10 +293,10 @@ inline void SetError(int err) { inline void ClearError() { local::GetErrorRef() = 0; } -inline int GetError() { return local::GetErrorRef(); } +inline int GetError() { return Xbyak::local::GetErrorRef(); } -#define XBYAK_THROW(err) { local::SetError(err); return; } -#define XBYAK_THROW_RET(err, r) { local::SetError(err); return r; } +#define XBYAK_THROW(err) { Xbyak::local::SetError(err); return; } +#define XBYAK_THROW_RET(err, r) { Xbyak::local::SetError(err); return r; } #else class Error : public std::exception { |