swig专题提供swig的最新资讯内容,帮你更好的了解swig。
折腾了一天,终于实现了multi module。 1. 建立自己的module:me.module 2. 在me.module里加入%include "sio2.module" 3. 用swig编出me.module的wrapper 4. 在sio2.cc里去掉sio2 wrapper的include,include me.module的wrapper 5. 在sio2.cc里修改luaopen_
* 通过swig 粘合 lua 与 c++:http://hi.baidu.com/%B6%FE%D4%C2%C4%F1t/blog/item/190f9c1197f432d6c3fd7827.html * Lua scripting with SWIG - Calling a Lua function from C++ and passing parameters to it:http://ww
1、std::string //demo.h td::string foo(); void bar(const std::string &x); //demo.i %module demo %{ #include "demo.h" %} %include "std_string.i" %include "demo.h" 调用 --test.lua a = demo.foo(); de