- Fixed a crash coming from velo.c
- Improved saving of reflection lists - The other changes are mostly whitespace
This commit is contained in:
15
devexec.c
15
devexec.c
@ -1069,18 +1069,27 @@ int SicsIdle(SConnection * pCon, SicsInterp * pSics, void *pData,
|
||||
|
||||
/*--------------------------------------------------------------------------
|
||||
Usage:
|
||||
Success
|
||||
Success [level]
|
||||
*/
|
||||
int Success(SConnection * pCon, SicsInterp * pSics, void *pData,
|
||||
int argc, char *argv[])
|
||||
{
|
||||
int iRet;
|
||||
int iRet, level;
|
||||
Status eOld;
|
||||
pExeList self = (pExeList)pData;
|
||||
|
||||
eOld = GetStatus();
|
||||
SetStatus(eRunning);
|
||||
while(DevExecLevelRunning(self, RUNRUN)){
|
||||
|
||||
if(argc > 1){
|
||||
if(strcmp(argv[1],"RUNDRIVE") == 0){
|
||||
level = RUNDRIVE;
|
||||
}
|
||||
} else {
|
||||
level = RUNRUN;
|
||||
}
|
||||
|
||||
while(DevExecLevelRunning(self, level)){
|
||||
TaskYield(self->pTask);
|
||||
}
|
||||
iRet = self->iStatus;
|
||||
|
Reference in New Issue
Block a user