Closed bagobor closed 8 years ago
Why don't you provide a test for this feature?
upd: nevermind, I misread the message.
@nitrocaster FYI :santa: Sample code for upvalue name ( I used it to avoid chunk recompilation in my scripted entity system):
luaL_loadstring(L,script.c_str());
luabind::object compiledScript(luabind::from_stack(L, -1));
for (int index = 1;;++index) {
auto upv = luabind::getupvalue(compiledScript, index);
auto name = std::get<0>(upv);
if (!name) break;
std::cout << name << endl;
}
Looks reasonable for me. @decimad, how about merge?
There we go! Thank you!
Sorry for second fix in single pull request. (It was automatically added as I pushed new fix to my fork.)