apibuild: Add index.warning() method

This method is used in eg. index.merge(), but is not defined
anywhere. The implementation has been copied from docBuilder.
This commit is contained in:
Andrea Bolognani 2016-04-25 14:23:04 +02:00
parent 22a592a4fe
commit ccaceab7bd

View File

@ -240,6 +240,11 @@ class index:
self.references = {}
self.info = {}
def warning(self, msg):
global warnings
warnings = warnings + 1
print msg
def add_ref(self, name, header, module, static, type, lineno, info=None, extra=None, conditionals = None):
if name[0:2] == '__':
return None