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

Function iiGetBuiltinModInit

Singular/iplib.cc:814–825  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

812extern "C" int flint_mod_init(SModulFunctions* psModulFunctions);
813
814SModulFunc_t
815iiGetBuiltinModInit(const char* libname)
816{
817#ifdef HAVE_FLINT
818 if (strcmp(libname,"flint.so")==0) return SI_MOD_INIT0(flint);
819#endif
820# define SI_GET_BUILTIN_MOD_INIT(name) if (strcmp(libname, #name ".so") == 0){ return SI_MOD_INIT0(name); }
821 SI_FOREACH_BUILTIN(SI_GET_BUILTIN_MOD_INIT)
822# undef SI_GET_BUILTIN_MOD_INIT
823
824 return NULL;
825}
826
827
828

Callers 2

jjLOADFunction · 0.85
iiTryLoadLibFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected