MCPcopy Create free account
hub / github.com/WheretIB/nullc / AddVariableReserveNode

Function AddVariableReserveNode

NULLC/Callbacks.cpp:1219–1226  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1217}
1218
1219void AddVariableReserveNode(const char* pos)
1220{
1221 assert(varDefined);
1222 if(!currType)
1223 ThrowError(pos, "ERROR: auto variable must be initialized in place of definition");
1224 CodeInfo::nodeList.push_back(new NodeZeroOP());
1225 varDefined = false;
1226}
1227
1228void ConvertTypeToReference(const char* pos)
1229{

Callers 1

ParseAddVariableFunction · 0.85

Calls 3

assertFunction · 0.85
ThrowErrorFunction · 0.85
push_backMethod · 0.45

Tested by

no test coverage detected