aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorMITSUNARI Shigeo <[email protected]>2022-05-13 17:19:59 +0900
committerMITSUNARI Shigeo <[email protected]>2022-05-13 17:26:44 +0900
commit30144f80911103cfef5379a1e3c79ade81190d6a (patch)
treee2728bf5e6894a4a655b8981cb210de60bf2cba8
parentec15751df2fdf9d436c8acb154a0cfbcf7f26c0f (diff)
downloadxbyak-30144f80911103cfef5379a1e3c79ade81190d6a.tar.gz
xbyak-30144f80911103cfef5379a1e3c79ade81190d6a.zip
fix error when XBYAK_NO_EXCEPTION is defined
-rw-r--r--xbyak/xbyak.h6
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 {