MCPcopy
hub / github.com/KhronosGroup/Vulkan-Docs / endFile

Method endFile

scripts/cgenerator.py:213–226  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

211 self.newline()
212
213 def endFile(self):
214 # C-specific
215 # Finish C++ wrapper and multiple inclusion protection
216 if self.genOpts is None:
217 raise MissingGeneratorOptionsError()
218 self.newline()
219 write('#ifdef __cplusplus', file=self.outFile)
220 write('}', file=self.outFile)
221 write('#endif', file=self.outFile)
222 if self.genOpts.protectFile and self.genOpts.filename:
223 self.newline()
224 write('#endif', file=self.outFile)
225 # Finish processing in superclass
226 OutputGenerator.endFile(self)
227
228 def beginFeature(self, interface, emit):
229 # Start processing in superclass

Callers

nothing calls this directly

Calls 3

writeFunction · 0.90
newlineMethod · 0.80

Tested by

no test coverage detected