Add support for doc(builtin)
This commit is contained in:
@@ -17,7 +17,7 @@ LuaFunctionReg::LuaFunctionReg(const char *n, const char *a, const char *d, lua_
|
||||
|
||||
LuaFunctionReg::List LuaFunctionReg::all() {
|
||||
LuaFunctionReg::List result;
|
||||
for (const LuaFunctionReg *r = LuaFunctionRegistry; r != 0; r = r->next_) {
|
||||
for (LuaFunctionReg *r = LuaFunctionRegistry; r != 0; r = r->next_) {
|
||||
result.push_back(r);
|
||||
}
|
||||
return result;
|
||||
@@ -366,7 +366,7 @@ std::string LuaStack::get_function_name(LuaSlot fn) {
|
||||
LS.getglobaltable(globals);
|
||||
LS.set(key, LuaNil);
|
||||
while (LS.next(globals, key, val)) {
|
||||
if (LS.isstring(key)) {
|
||||
if (LS.isstring(key) && !LS.rawequal(globals, val)) {
|
||||
if (LS.rawequal(val, fn)) {
|
||||
return LS.ckstring(key);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user