文件名称:luabz:C ++和Lua之间的绑定
文件大小:61KB
文件格式:ZIP
更新时间:2024-06-04 06:34:31
C++
luabz-C ++ <=> Lua 获取Lua变量的值 -- my_script.lua variable = 1 ; mytable = { variable = 2 }; # include " script.hpp " int main () { luabz::script my_script ( " my_script.lua " ) int variable=my_script[ " variable " ]; // Getting the value of a global Lua variable int mytable_variable=my_script[ " my_table " ][ " variable " ]; // Getting the value of a Lua table's field return 0 ; } 设置Lua变量的
【文件预览】:
luabz-master
----build.sh(2KB)
----.gitmodules(87B)
----src()
--------CMakeLists.txt(586B)
--------main.cpp(152B)
----.clang-format(691B)
----CMakeLists.txt(1KB)
----TODO.md(577B)
----.travis.yml(1KB)
----LICENSE(11KB)
----cmake()
--------clang-format.cmake(444B)
--------googletestmock.cmake(2KB)
--------codecoverage.cmake(445B)
--------doxygen.cmake(614B)
--------cppcheck.cmake(911B)
--------clang-tidy.cmake(796B)
----README.md(3KB)
----utilitybz()
----tests()
--------scripts()
--------core()
--------CMakeLists.txt(750B)
--------detail()
----.gitignore(5KB)
----Doxyfile.in(105KB)
----include()
--------luabz()
--------luabz.hpp(69B)