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

Function _GetDefines

tools/gyp/pylib/gyp/generator/msvs.py:1370–1383  ·  view source on GitHub ↗

Returns the list of preprocessor definitions for this configuration. Arguments: config: The dictionary that defines the special processing to be done for this configuration. Returns: The list of preprocessor definitions.

(config)

Source from the content-addressed store, hash-verified

1368
1369
1370def _GetDefines(config):
1371 """Returns the list of preprocessor definitions for this configuration.
1372
1373 Arguments:
1374 config: The dictionary that defines the special processing to be done
1375 for this configuration.
1376 Returns:
1377 The list of preprocessor definitions.
1378 """
1379 defines = []
1380 for d in config.get("defines", []):
1381 fd = "=".join([str(dpart) for dpart in d]) if isinstance(d, list) else str(d)
1382 defines.append(fd)
1383 return defines
1384
1385
1386def _GetDisabledWarnings(config):

Callers 2

_FinalizeMSBuildSettingsFunction · 0.85

Calls 4

strFunction · 0.85
getMethod · 0.65
joinMethod · 0.45
appendMethod · 0.45

Tested by

no test coverage detected