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

Function ThrowConstantFoldError

NULLC/Callbacks.cpp:3438–3447  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

3436 uncalledFunc = NULL;
3437}
3438void ThrowConstantFoldError(const char *pos)
3439{
3440 if(CodeInfo::nodeList.back()->nodeType != typeNodeNumber)
3441 {
3442 if(uncalledFunc)
3443 ThrowError(uncalledPos, "ERROR: array size must be a constant expression. During constant folding, '%s' function couldn't be evaluated", uncalledFunc->name);
3444 else
3445 ThrowError(pos, "ERROR: array size must be a constant expression");
3446 }
3447}
3448
3449TypeInfo* GetGenericFunctionRating(FunctionInfo *fInfo, unsigned &newRating, unsigned count)
3450{

Callers 1

ParseArrayDefinitionFunction · 0.85

Calls 1

ThrowErrorFunction · 0.85

Tested by

no test coverage detected