文件名称:luabind:提供对lua的类型安全绑定的支持的C ++库
文件大小:9KB
文件格式:ZIP
更新时间:2024-05-01 19:20:59
C++
Luabind
提供对lua的类型安全绑定的支持的C ++库
示例LUA:
function init(id)
mylib.print_message("in init. got: " .. id)
local announce_id = mylib.announce("henry")
mylib.print_message("announce got " .. announce_id)
end
function shutdown()
mylib.print_message ("in shutdown")
end
来源示例:
#include "luabind/luabind.hpp"
#include
【文件预览】:
luabind-main
----test()
--------test.lua(228B)
--------test.cpp(1KB)
--------CMakeLists.txt(355B)
----include()
--------luabind()
----LICENSE(1KB)
----src()
--------method_call.cpp(723B)
--------CMakeLists.txt(198B)
--------method_callback.cpp(521B)
----.gitignore(62B)
----CMakeLists.txt(107B)
----README.md(2KB)