浏览代码

lua: fix compilation issues.

undefined
Sam Hocevar 9 年前
父节点
当前提交
d97087fc8b
共有 2 个文件被更改,包括 17 次插入11 次删除
  1. +0
    -2
      src/imgui/lolimgui.cpp
  2. +17
    -9
      src/lolua/baselua.h

+ 0
- 2
src/imgui/lolimgui.cpp 查看文件

@@ -135,8 +135,6 @@ void LolImGui::TickGame(float seconds)
//Init Texture
if (!m_font)
{
ImGuiIO& io = ImGui::GetIO();

// Build texture
unsigned char* pixels;
ivec2 size;


+ 17
- 9
src/lolua/baselua.h 查看文件

@@ -227,14 +227,7 @@ protected:
}

//-------------------------------------------------------------------------
template <typename TLuaClass>
static int Del(LuaState * l)
{
VarPtr<TLuaClass> obj; obj.Get(l, 1);
ASSERT(obj());
delete obj();
return 0;
}
template <typename TLuaClass> static int Del(LuaState * l);
};

//-----------------------------------------------------------------------------
@@ -281,7 +274,7 @@ public:
inline T* operator=(T* value) { m_value = value; }
inline bool IsValid(LuaState* l, int index)
{
return InnerValid(l, index);
return InnerIsValid(l, index);
}
private:
inline void GetInc(LuaState* l, int& index)
@@ -321,6 +314,21 @@ protected:
*data = m_value;
}
};

//
// Object member implementations that require VarPtr
//

template <typename TLuaClass>
int Object::Del(LuaState * l)
{
VarPtr<TLuaClass> obj;
obj.Get(l, 1);
ASSERT(obj());
delete obj();
return 0;
}

//-----------------------------------------------------------------------------
/* TODO: FIX THAT TOUKY !!
template<typename T>


正在加载...
取消
保存