Skip to content

Commit

Permalink
clang build fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
rdeioris committed Jan 23, 2019
1 parent 93423e8 commit f386ee7
Showing 1 changed file with 9 additions and 9 deletions.
18 changes: 9 additions & 9 deletions Source/LuaMachine/Private/LuaState.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1014,22 +1014,22 @@ ULuaState::~ULuaState()
}


#define LUAVALUE_PROP_CAST(Type, Type2) Type* _##Type## = Cast<Type>(Property);\
if (_##Type##)\
#define LUAVALUE_PROP_CAST(Type, Type2) Type* __##Type##__ = Cast<Type>(Property);\
if (__##Type##__)\
{\
return FLuaValue((Type2)_##Type##->GetPropertyValue_InContainer(Buffer, Index));\
return FLuaValue((Type2)__##Type##__->GetPropertyValue_InContainer(Buffer, Index));\
}

#define LUAVALUE_PROP_CAST_TOSTRING(Type) Type* _##Type## = Cast<Type>(Property);\
if (_##Type##)\
#define LUAVALUE_PROP_CAST_TOSTRING(Type) Type* __##Type##__ = Cast<Type>(Property);\
if (__##Type##__)\
{\
return FLuaValue(_##Type##->GetPropertyValue_InContainer(Buffer, Index).ToString());\
return FLuaValue(__##Type##__->GetPropertyValue_InContainer(Buffer, Index).ToString());\
}

#define LUAVALUE_PROP_SET(Type, Value) Type* _##Type## = Cast<Type>(Property);\
if (_##Type##)\
#define LUAVALUE_PROP_SET(Type, Value) Type* __##Type##__ = Cast<Type>(Property);\
if (__##Type##__)\
{\
_##Type##->SetPropertyValue_InContainer(Buffer, Value, Index);\
__##Type##__->SetPropertyValue_InContainer(Buffer, Value, Index);\
return;\
}

Expand Down

0 comments on commit f386ee7

Please sign in to comment.