NPLRuntime icon indicating copy to clipboard operation
NPLRuntime copied to clipboard

自动化lua bind实现

Open kkvskkkk opened this issue 7 years ago • 1 comments

通过使用python+clang分析c++代码, 自动化的生成Lua bing代码

实现目标

  1. 开发人员实现功能的时候, 绝大部分情况下不需要考虑lua bind的事情(部分特殊优化例如ffi代码需要手工实现lua bind)
  2. 减少模版的使用, 降低exe文件大小
  3. 生成的lua bind代码完全基于luabind, 保持对现有的规则兼容
  4. 透明化包装类, 甚至减少包装类用lightuserdata来实现各种功能
  5. 更高效的转换c++ struct和各种std对象, 尽量避免userdata的使用

kkvskkkk avatar Jul 13 '17 08:07 kkvskkkk

also see if there are any useful staff here: http://lua-users.org/wiki/BindingCodeToLua

@kkvskkkk

LiXizhi avatar Jul 13 '17 14:07 LiXizhi