Skip to content

Commit

Permalink
Merge pull request #135 from kamelusz/extra-semicolon
Browse files Browse the repository at this point in the history
Remove extra semicolons
  • Loading branch information
jeremyong committed Nov 28, 2015
2 parents ae1a572 + 1f4b86f commit 7bfef1f
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions include/selene/primitives.h
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,7 @@ template <typename T>
inline T* _check_get(_id<T*>, lua_State *l, const int index) {
MetatableRegistry::CheckType(l, typeid(T), index);
return (T *)lua_topointer(l, index);
};
}

template <typename T>
inline T& _check_get(_id<T&>, lua_State *l, const int index) {
Expand All @@ -136,12 +136,12 @@ inline T& _check_get(_id<T&>, lua_State *l, const int index) {
}

return *ptr;
};
}

template <typename T>
inline T _check_get(_id<T&&>, lua_State *l, const int index) {
return _check_get(_id<T>{}, l, index);
};
}


inline int _check_get(_id<int>, lua_State *l, const int index) {
Expand All @@ -162,7 +162,7 @@ inline int _check_get(_id<int>, lua_State *l, const int index) {
#else
#error "Not supported for Lua versions <5.2"
#endif
};
}

inline unsigned int _check_get(_id<unsigned int>, lua_State *l, const int index) {
int isNum = 0;
Expand Down

0 comments on commit 7bfef1f

Please sign in to comment.