mirror of
https://github.com/edubart/otclient.git
synced 2025-10-19 05:53:26 +02:00
Fixes to compile with clang
This commit is contained in:
@@ -98,6 +98,10 @@ int push_luavalue(const OTMLNodePtr& node);
|
||||
bool luavalue_cast(int index, OTMLNodePtr& node);
|
||||
|
||||
// enum
|
||||
template<class T>
|
||||
typename std::enable_if<std::is_enum<T>::value, int>::type
|
||||
push_luavalue(T e) { return push_luavalue((int)e); }
|
||||
|
||||
template<class T>
|
||||
typename std::enable_if<std::is_enum<T>::value, bool>::type
|
||||
luavalue_cast(int index, T& myenum);
|
||||
|
Reference in New Issue
Block a user