diff --git a/kernel/trunk/asmxygen.py b/kernel/trunk/asmxygen.py index f88ebea8b9..8ec83fb278 100644 --- a/kernel/trunk/asmxygen.py +++ b/kernel/trunk/asmxygen.py @@ -1357,12 +1357,17 @@ created_files = [] class AsmElement: def __init__(self, location, name, comment): + global warnings + self.location = location self.file = self.location.split(':')[0].replace('\\', '/') self.line = self.location.split(':')[1] self.name = name self.comment = comment + if self.comment == '': + warnings += f'{self.location}: Undocumented element\n' + def dump(self): print(f"{self.comment}") print(f"{self.location}: {self.name}")