瀏覽代碼

math: fix a syntax error in vector.h due to duplicate macro declaration.

legacy
Sam Hocevar sam 13 年之前
父節點
當前提交
2fe8d1f9a0
共有 1 個文件被更改,包括 4 次插入4 次删除
  1. +4
    -4
      src/lol/math/vector.h

+ 4
- 4
src/lol/math/vector.h 查看文件

@@ -910,7 +910,7 @@ static inline Quat<T> operator /(Quat<T> x, Quat<T> const &y)
return ret; \
}

#define DECLARE_ALL_GLOBAL_OPS(tname, tprefix, T) \
#define DECLARE_OTHER_GLOBAL_OPS(tname, tprefix, T) \
DECLARE_SCALAR_OP(tname, *, tprefix, T) \
DECLARE_SCALAR_OP(tname, /, tprefix, T) \
\
@@ -962,13 +962,13 @@ static inline Quat<T> operator /(Quat<T> x, Quat<T> const &y)
}

#define DECLARE_GLOBAL_TEMPLATE_OPS(tname) \
DECLARE_ALL_GLOBAL_OPS(tname, template<typename T>, T)
DECLARE_OTHER_GLOBAL_OPS(tname, template<typename T>, T)

#define DECLARE_ALL_GLOBAL_OPS(tname, tprefix, T) \
DECLARE_VECTOR_OP(tname, *, tprefix, T) \
DECLARE_VECTOR_OP(tname, /, tprefix, T) \
\
DECLARE_ALL_GLOBAL_OPS(tname, tprefix, T) \
DECLARE_OTHER_GLOBAL_OPS(tname, tprefix, T) \
\
DECLARE_BOOL_OP(tname, <=, <=, true, tprefix, T) \
DECLARE_BOOL_OP(tname, >=, >=, true, tprefix, T) \
@@ -1002,7 +1002,7 @@ DECLARE_GLOBAL_TYPED_OPS(Vec4)
#undef DECLARE_VECTOR_OP
#undef DECLARE_BOOL_OP
#undef DECLARE_SCALAR_OP
#undef DECLARE_ALL_GLOBAL_OPS
#undef DECLARE_GLOBAL_OPS
#undef DECLARE_GLOBAL_TEMPLATE_OPS
#undef DECLARE_ALL_GLOBAL_OPS
#undef DECLARE_GLOBAL_TYPED_OPS


Loading…
取消
儲存