GENG Yong
GENG Yong
use myClass:new() instead of myClass.new() here. this is a know issue in current version, will be fixed in next release.
use std::tuple to return multiple values from c++ to lua, it will be extracted to a table in lua. there is an example testTuple()/testTuple2() in example.cpp.
Lua only supports a single integer type, which is defined by the LUA_INTEGER macro in the luaconf.h header during the compilation of Lua. Due to this limitation, special handling is...
std::string has a non-explicit constructor that accepts const char*, so you can implicitly construct a std::string by passing const char* directly.