- added FindCommandDescriptor to SCinter.*
- modified support for dynamic objects - improved logger system - various fixes
This commit is contained in:
18
SCinter.c
18
SCinter.c
@ -976,6 +976,11 @@ static void printType(SicsInterp *pSics, SConnection *pCon, char *typeName)
|
||||
if(!pCom->pData)
|
||||
return NULL;
|
||||
|
||||
if (cclass == NULL)
|
||||
{
|
||||
return pCom->pData;
|
||||
}
|
||||
|
||||
pDum = (pDummy)pCom->pData;
|
||||
if(strcmp(pDum->pDescriptor->name,cclass) == 0)
|
||||
{
|
||||
@ -983,6 +988,19 @@ static void printType(SicsInterp *pSics, SConnection *pCon, char *typeName)
|
||||
}
|
||||
return NULL;
|
||||
}
|
||||
/*---------------------------------------------------------------------------*/
|
||||
pObjectDescriptor FindCommandDescriptor(SicsInterp *pSics, char *name)
|
||||
{
|
||||
CommandList *pCom;
|
||||
|
||||
pCom = FindCommand(pSics,name);
|
||||
if(pCom == NULL || pCom->pData == NULL)
|
||||
{
|
||||
return NULL;
|
||||
}
|
||||
|
||||
return ((pDummy)pCom->pData)->pDescriptor;
|
||||
}
|
||||
/*------------------------------------------------------------------------*/
|
||||
void *FindDrivable(SicsInterp *pSics, char *name){
|
||||
pIDrivable pDriv;
|
||||
|
Reference in New Issue
Block a user