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

Function OPS_GetString

SRC/interpreter/OpenSeesCommandsPython.cpp:920–929  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

918
919extern "C"
920const char *OPS_GetString(void)
921{
922 PyObject *o = PyTuple_GetItem(currentArgs,currentArg);
923 currentArg++;
924#if PY_MAJOR_VERSION==2
925 return PyString_AS_STRING(o);
926#elif PY_MAJOR_VERSION==3
927 return PyUnicode_AS_DATA(o);
928#endif
929}
930
931extern "C" int OPS_GetNDM()
932{

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected