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

Function iiDefaultParameter

Singular/ipshell.cc:1259–1271  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1257}
1258
1259BOOLEAN iiDefaultParameter(leftv p)
1260{
1261 attr at=NULL;
1262 if (iiCurrProc!=NULL)
1263 at=iiCurrProc->attribute->get("default_arg");
1264 if (at==NULL)
1265 return FALSE;
1266 sleftv tmp;
1267 tmp.Init();
1268 tmp.rtyp=at->atyp;
1269 tmp.data=at->CopyA();
1270 return iiAssign(p,&tmp);
1271}
1272BOOLEAN iiBranchTo(leftv, leftv args)
1273{
1274 // must be inside a proc, as we simultae an proc_end at the end

Callers 1

iiParameterFunction · 0.85

Calls 3

CopyAMethod · 0.80
getMethod · 0.45
InitMethod · 0.45

Tested by

no test coverage detected