mirror of
https://github.com/sphinx-doc/sphinx.git
synced 2025-02-25 18:55:22 -06:00
c domain: Fix TypeError by missing config arugment
This commit is contained in:
parent
b2a601a33d
commit
561dff114f
@ -3149,7 +3149,8 @@ class CNamespaceObject(SphinxDirective):
|
||||
stack = [] # type: List[Symbol]
|
||||
else:
|
||||
parser = DefinitionParser(self.arguments[0],
|
||||
location=self.get_source_info())
|
||||
location=self.get_source_info(),
|
||||
config=self.env.config)
|
||||
try:
|
||||
name = parser.parse_namespace_object()
|
||||
parser.assert_end()
|
||||
@ -3175,7 +3176,8 @@ class CNamespacePushObject(SphinxDirective):
|
||||
if self.arguments[0].strip() in ('NULL', '0', 'nullptr'):
|
||||
return []
|
||||
parser = DefinitionParser(self.arguments[0],
|
||||
location=self.get_source_info())
|
||||
location=self.get_source_info(),
|
||||
config=self.env.config)
|
||||
try:
|
||||
name = parser.parse_namespace_object()
|
||||
parser.assert_end()
|
||||
|
Loading…
Reference in New Issue
Block a user