MCPcopy Create free account
hub / github.com/nodejs/node / BuildCondition

Method BuildCondition

deps/v8/tools/cppgc/gen_cmake.py:343–348  ·  view source on GitHub ↗
(self, cond, then_stmts)

Source from the content-addressed store, hash-verified

341 return f'list(REMOVE_ITEM {self._SourceVar(target)} {sources})'
342
343 def BuildCondition(self, cond, then_stmts):
344 return f"""
345if({cond})
346 {' '.join(then_stmts)}
347endif()
348 """.strip()
349
350 def BuildConditionWithElseStmts(self, cond, then_stmts, else_stmts):
351 return f"""

Callers 1

_ConditionMethod · 0.80

Calls 1

joinMethod · 0.45

Tested by

no test coverage detected