随笔 - 505  文章 - 1034  trackbacks - 0
<2008年10月>
2829301234
567891011
12131415161718
19202122232425
2627282930311
2345678


子曾经曰过:编程无他,唯手熟尔!

常用链接

留言簿(94)

随笔分类(649)

随笔档案(505)

相册

BCB

Crytek

  • crymod
  • Crytek's Offical Modding Portal

Game Industry

OGRE

other

Programmers

Qt

WOW Stuff

搜索

  •  

积分与排名

  • 积分 - 893949
  • 排名 - 14

最新随笔

最新评论

阅读排行榜

评论排行榜

官网

CEGUI里面就用了这个,全部改用Unicode字符集后有问题,现在就在解决这个问题。
某些游戏据说逻辑就用lua来写,是不是就是用的这个东西?反正namespace,class,enum,variables都可以导出,用lua来写是没问题了。


 tolua++初探(一)

tolua++的命令行参数:
E:\CEGUI\tolua++-1.0.92\bin>tolua++_d.exe

usage
: tolua++ [options] input_file

Command line options are
:
  
-v       : print version information.
  
-o  file : set output file; default is stdout.
  
-H  file : create include file.
  
-n  name : set package name; default is input file root name.
  
-p       : parse only.
  
-P       : parse and print structure information (for debug).
  
-S       : disable support for c++ strings.
  
-1       : substract 1 to operator[] index (for compatibility with tolua5).
  
-L  file : run lua file (with dofile()) before doing anything.
  
-D       : disable automatic exporting of destructors for classes that have
             constructors (
for compatibility with tolua5)
  
-W       : disable warnings for unsupported features (for compatibility
             with tolua5)
  
-C       : disable cleanup of included lua code (for easier debugging)
  
-E  value[=value] : add extra values to the luastate
  
-t       : export a list of types asociates with the C++ typeid name
  
-h       : print this message.
Should the input file be omitted
, stdin is assumed;
in that case
, the package name must be explicitly set.



posted on 2008-10-28 02:25 七星重剑 阅读(1762) 评论(4)  编辑 收藏 引用 所属分类: PL--LuaC++ lib -- CEGUI

FeedBack:
# re: 用tolua++把C++的类导出给Lua用 2008-10-28 13:20 秒大刀
要是很多的代码都用lua写也是比较痛苦的,没有编译器严格的检测和IDE强大的辅助,lua写大了远没有c++好控制
很难想想10w行的lua怎么维护,但10w行的c++应该不在话下吧
  回复  更多评论
  
# re: 用tolua++把C++的类导出给Lua用 2008-10-29 00:24 七星重剑
@秒大刀
呵呵,你现在的项目是不是游戏逻辑就用lua来写的?

lua多了是比较痛苦,靠打日志纠错  回复  更多评论
  
# re: 用tolua++把C++的类导出给Lua用 2008-10-29 14:38 xoyojank
还好引擎部分不用lua....  回复  更多评论
  
# re: 用tolua++把C++的类导出给Lua用 2010-06-13 09:44 ponder
@秒大刀
可以想象:在痛苦中调试...
我试过调试别人的,痛不欲生...  回复  更多评论
  

只有注册用户登录后才能发表评论。
网站导航: 博客园   IT新闻   BlogJava   知识库   博问   管理