MCPcopy Create free account
hub / github.com/LuxCoreRender/LuxCore / VerifyArrayLength

Function VerifyArrayLength

src/luxcore/luxparser/luxparse.cpp:576–584  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

574}
575
576static bool VerifyArrayLength(ParamArray *arr, u_int required,
577 const char *command)
578{
579 if (arr->nelems != required) {
580 LC_LOG(command << " requires a(n) " << required << " element array !");
581 return false;
582 }
583 return true;
584}
585
586typedef enum {
587 PARAM_TYPE_INT, PARAM_TYPE_BOOL, PARAM_TYPE_FLOAT,

Callers 1

yyparseFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected