- allow scriptcontext objects to be dynamic
- enhancements in scriptcontext (error messages stored as properties)
This commit is contained in:
@ -306,8 +306,9 @@ int SctMakeDriveAdapter(SConnection * pCon, SicsInterp * pSics,
|
||||
}
|
||||
|
||||
if (argc < 4) {
|
||||
SCWrite(pCon, "ERROR: not enough arguments for SctMakeDriveAdapter",
|
||||
eError);
|
||||
SCPrintf(pCon, eError,
|
||||
"ERROR: should be %s <object name> <existing-node> <controller>",
|
||||
argv[0]);
|
||||
return 0;
|
||||
}
|
||||
|
||||
@ -335,12 +336,8 @@ int SctMakeDriveAdapter(SConnection * pCon, SicsInterp * pSics,
|
||||
}
|
||||
|
||||
/*---------------------------------------------------------------*/
|
||||
int SctMakeDriveObject(SConnection * pCon, SicsInterp * pSics,
|
||||
void *object, int argc, char *argv[]);
|
||||
|
||||
void SctDriveInit(void)
|
||||
void SctDriveAdapterInit(void)
|
||||
{
|
||||
AddCmd("makesctdrive", SctMakeDriveAdapter);
|
||||
AddCmd("dynsctdrive", SctMakeDriveAdapter);
|
||||
AddCmd("makesctdriveobj", SctMakeDriveObject);
|
||||
}
|
||||
|
Reference in New Issue
Block a user