From 8d806182d8af1cb90b3fc618e718c0485cf26488 Mon Sep 17 00:00:00 2001 From: Zeno Rogue Date: Sat, 1 Sep 2018 13:50:56 +0200 Subject: [PATCH] operators in hyper.h are inline --- hyper.h | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/hyper.h b/hyper.h index a861876d..c7342eb2 100644 --- a/hyper.h +++ b/hyper.h @@ -538,8 +538,8 @@ typedef walker heptspin; typedef walker cellwalker; static const struct cth_t { cth_t() {}} cth; -heptspin operator+ (cellwalker cw, cth_t) { return heptspin(cw.at->master, cw.spin * DUALMUL, cw.mirrored); } -cellwalker operator+ (heptspin hs, cth_t) { return cellwalker(hs.at->c7, hs.spin / DUALMUL, hs.mirrored); } +inline heptspin operator+ (cellwalker cw, cth_t) { return heptspin(cw.at->master, cw.spin * DUALMUL, cw.mirrored); } +inline cellwalker operator+ (heptspin hs, cth_t) { return cellwalker(hs.at->c7, hs.spin / DUALMUL, hs.mirrored); } #define BUGCOLORS 3 @@ -1862,9 +1862,9 @@ enum class PPR { DEFAULT = -1 }; -PPR operator + (PPR x, int y) { return PPR(int(x) + y); } -PPR operator - (PPR x, int y) { return PPR(int(x) - y); } -int operator - (PPR x, PPR y) { return int(x) - int(y); } +inline PPR operator + (PPR x, int y) { return PPR(int(x) + y); } +inline PPR operator - (PPR x, int y) { return PPR(int(x) - y); } +inline int operator - (PPR x, PPR y) { return int(x) - int(y); } namespace mapeditor { bool drawUserShape(const transmatrix& V, eShapegroup group, int id, int color, cell *c, PPR prio = PPR::DEFAULT);