MCPcopy Create free account
hub / github.com/BoomingTech/Piccolo / InExternC

Method InExternC

engine/3rdparty/tinyobjloader/deps/cpplint.py:2242–2248  ·  view source on GitHub ↗

Check if we are currently one level inside an 'extern "C"' block. Returns: True if top of the stack is an extern block, False otherwise.

(self)

Source from the content-addressed store, hash-verified

2240 return self.stack and isinstance(self.stack[-1], _NamespaceInfo)
2241
2242 def InExternC(self):
2243 """Check if we are currently one level inside an 'extern "C"' block.
2244
2245 Returns:
2246 True if top of the stack is an extern block, False otherwise.
2247 """
2248 return self.stack and isinstance(self.stack[-1], _ExternCInfo)
2249
2250 def InClassDeclaration(self):
2251 """Check if we are currently one level inside a class or struct declaration.

Callers 1

CheckSpacingFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected