摘要:
tolua++ 配置看到很多方法将lua和c++结合的办法,由于看到cegui使用的是tolua++,所以决定使用tolua++。1、下载tolua++www.codenix.com/~tolua/2、找到 tolua++-1.0.93\win32\vc7文件夹,编译程序生产tolua++.exe(我用的include和lib都是cegui里的,统一版本比较好)3、测试tolua++(下面是参照他人的http://blog.csdn.net/foruok/archive/2008/04/17/2301751.aspx)创建tarray.pkg文件:$#include "tarray. 阅读全文
摘要:
工具ValgrindPurify 阅读全文
摘要:
http://blog.csdn.net/lqk1985/article/details/7190971 阅读全文
摘要:
Account = {balance = 0}function Account:new (o)o = o or {}setmetatable(o, self)self.__index = selfprint("This is Base")return oend... 阅读全文
摘要:
Account = {balance = 0}function Account:new (o) o = o or {} setmetatable(o, self) self.__index = self print("This is Base") return oendfunction Account:deposit (v) self.balance = self.balance + vendfunction Account:withdraw (v) if v > self.balance then error"insufficient funds" 阅读全文
摘要:
local _class={}function class(super) local class_type={} class_type.ctor=false class_type.super=super class_type.new=function(...) local obj={} do local create create = function(c,...) if c.super then create(c.super,...) end if c.ctor then c.ctor(obj,...) end e... 阅读全文