登录  
 加关注
   显示下一条  |  关闭
温馨提示!由于新浪微博认证机制调整,您的新浪微博帐号绑定已过期,请重新绑定!立即重新绑定新浪微博》  |  关闭

Code@Pig Home

喜欢背着一袋Code傻笑的Pig .. 忧美.欢笑.记忆.忘却 .之. 角落

 
 
 

日志

 
 

[lua] simple c++ binding ---- luna & lunar  

2008-05-03 21:42:47|  分类: lang_lua |  标签: |举报 |字号 订阅

  下载LOFTER 我的照片书  |
相对于其他的一些 binding wrapper,luna 非常 light-weight,也是目前实际项目中选用 binding 方式。这里收集了 luna 相关的一些资料,备查。对于想了解 c++2lua binding 的林林总总,luna 也是一个最好的开始。

luna 绑定的 c++ class,有一个先决条件,就是此 c++ class 仅在 lua 中创建、使用、删除。
而 lunar 则对其作了些许扩展,让此 c++ class 的函数也能比较方便地在 c++ 中使用。

luna 的来源:
http://www.lua.org/notes/ltn005.html

lua 中 binding 一个 c++ class
http://lua-users.org/wiki/SimpleCppBinding

luna 的使用:
http://lua-users.org/wiki/SimplerCppBinding

lunar 的使用 (luna 的扩展)
http://lua-users.org/wiki/CppBindingWithLunar

使用 lunar 中的扩展功能(cpp 中调用 luna c++ class 的函数)
http://lua-users.org/wiki/CallingLuaFromCpp

  评论这张
 
阅读(2925)| 评论(0)

历史上的今天

评论

<#--最新日志,群博日志--> <#--推荐日志--> <#--引用记录--> <#--博主推荐--> <#--随机阅读--> <#--首页推荐--> <#--历史上的今天--> <#--被推荐日志--> <#--上一篇,下一篇--> <#-- 热度 --> <#-- 网易新闻广告 --> <#--右边模块结构--> <#--评论模块结构--> <#--引用模块结构--> <#--博主发起的投票-->
 
 
 
 
 
 
 
 
 
 
 
 
 
 

页脚

网易公司版权所有 ©1997-2018