issue #169: make sure ldoc is not nil before checking config
This commit is contained in:
parent
c34957cd16
commit
2778e043ed
|
@ -1103,7 +1103,7 @@ function Module:process_see_reference (s,modules,istype)
|
||||||
lua_manual_ref = global.lua_manual_ref
|
lua_manual_ref = global.lua_manual_ref
|
||||||
end
|
end
|
||||||
-- pure C projects use global lookup (no namespaces)
|
-- pure C projects use global lookup (no namespaces)
|
||||||
if ldoc.global_lookup == nil then
|
if ldoc and ldoc.global_lookup == nil then
|
||||||
local using_c = ldoc.parse_extra and ldoc.parse_extra.C
|
local using_c = ldoc.parse_extra and ldoc.parse_extra.C
|
||||||
ldoc.global_lookup = using_c or false
|
ldoc.global_lookup = using_c or false
|
||||||
end
|
end
|
||||||
|
@ -1149,7 +1149,7 @@ function Module:process_see_reference (s,modules,istype)
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
else -- plain jane name; module in this package, function in this module
|
else -- plain jane name; module in this package, function in this module
|
||||||
if ldoc.global_lookup then
|
if ldoc and ldoc.global_lookup then
|
||||||
for m in modules:iter() do
|
for m in modules:iter() do
|
||||||
fun_ref = m:get_fun_ref(s)
|
fun_ref = m:get_fun_ref(s)
|
||||||
if fun_ref then return reference(s,m,fun_ref) end
|
if fun_ref then return reference(s,m,fun_ref) end
|
||||||
|
|
Loading…
Reference in New Issue