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

Function pyobject_ensure

Singular/pyobject_setup.cc:48–56  ·  view source on GitHub ↗

Explicitely load, if not loaded already

Source from the content-addressed store, hash-verified

46
47/// Explicitely load, if not loaded already
48BOOLEAN pyobject_ensure()
49{
50
51 int tok = -1;
52 blackbox* bbx = (blackboxIsCmd("pyobject", tok) == ROOT_DECL?
53 getBlackboxStuff(tok): (blackbox*)NULL);
54 if (bbx == NULL) return TRUE;
55 return (bbx->blackbox_Init == pyobject_autoload? pyobject_load(): FALSE);
56}

Callers

nothing calls this directly

Calls 3

blackboxIsCmdFunction · 0.85
getBlackboxStuffFunction · 0.85
pyobject_loadFunction · 0.85

Tested by

no test coverage detected