MCPcopy Create free account
hub / github.com/OpenSees/OpenSees / TclCommand_Package

Function TclCommand_Package

SRC/modelbuilder/tcl/TclModelBuilder.cpp:4799–4828  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

4797}
4798
4799int
4800TclCommand_Package(ClientData clientData, Tcl_Interp *interp, int argc, TCL_Char **argv)
4801{
4802
4803 void *libHandle;
4804 int (*funcPtr)(ClientData clientData, Tcl_Interp *interp, int argc,
4805 TCL_Char **argv, Domain*, TclModelBuilder*);
4806
4807 const char *funcName = 0;
4808 int res = -1;
4809
4810 if (argc == 2) {
4811 res = getLibraryFunction(argv[1], argv[1], &libHandle, (void **)&funcPtr);
4812 } else if (argc == 3) {
4813 res = getLibraryFunction(argv[1], argv[2], &libHandle, (void **)&funcPtr);
4814 }
4815
4816 if (res == 0) {
4817 int result = (*funcPtr)(clientData, interp,
4818 argc,
4819 argv,
4820 theTclDomain,
4821 theTclBuilder);
4822 } else {
4823 opserr << "Error: Could not find function: " << argv[1] << endln;
4824 return -1;
4825 }
4826
4827 return res;
4828}
4829
4830
4831

Callers

nothing calls this directly

Calls 1

getLibraryFunctionFunction · 0.50

Tested by

no test coverage detected