A small refactor to SourceDB to prepare for doc-search functionality
This commit is contained in:
@@ -933,7 +933,7 @@ LuaDefine(doc, "function",
|
||||
std::ostream *ostream = w->lthread_print_stream();
|
||||
LuaArg func;
|
||||
LuaDefStack LS(L, func);
|
||||
eng::string doc = SourceDB::function_docs(LS, func);
|
||||
eng::string doc = w->get_source().function_docs(LS, func);
|
||||
if (doc == "") {
|
||||
(*ostream) << "no doc found" << std::endl;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user