MCPcopy Create free account
hub / github.com/Singular/Singular / wrong_num_args

Function wrong_num_args

Singular/dyn_modules/systhreads/shared.cc:667–680  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

665}
666
667int wrong_num_args(const char *name, leftv arg, int n) {
668 for (int i=1; i<=n; i++) {
669 if (!arg) {
670 report("%s: too few arguments", name);
671 return TRUE;
672 }
673 arg = arg->next;
674 }
675 if (arg) {
676 report("%s: too many arguments", name);
677 return TRUE;
678 }
679 return FALSE;
680}
681
682int not_a_uri(const char *name, leftv arg) {
683 if (arg->Typ() != STRING_CMD) {

Callers 15

makeAtomicTableFunction · 0.85
makeAtomicListFunction · 0.85
makeSharedTableFunction · 0.85
makeSharedListFunction · 0.85
makeChannelFunction · 0.85
makeSyncVarFunction · 0.85
makeRegionFunction · 0.85
findSharedObjectFunction · 0.85
typeSharedObjectFunction · 0.85
bindSharedObjectFunction · 0.85
getTableFunction · 0.85
inTableFunction · 0.85

Calls 1

reportFunction · 0.85

Tested by

no test coverage detected