MCPcopy Create free account
hub / github.com/BohemiaInteractive/CWR / GetDefaultNular

Function GetDefaultNular

engine/Evaluator/express.cpp:1208–1218  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1206#pragma clang diagnostic push
1207#pragma clang diagnostic ignored "-Wexit-time-destructors"
1208static const GameNular* GetDefaultNular(int* outSize = nullptr)
1209{
1210 static const GameNular DefaultNular[] = {GameNular(GameVoid, "nil", VoidNil), GameNular(GameBool, "true", BoolTrue),
1211 GameNular(GameBool, "false", BoolFalse),
1212 GameNular(GameScalar, "pi", ScalarPi)};
1213 if (outSize)
1214 {
1215 *outSize = lenof(DefaultNular);
1216 }
1217 return DefaultNular;
1218}
1219#pragma clang diagnostic pop
1220
1221// Meyers singleton accessors for constant strings - no global constructors

Callers 1

InitMethod · 0.85

Calls 1

GameNularClass · 0.85

Tested by

no test coverage detected