Add BATCHEND callback
This commit is contained in:
1
exebuf.c
1
exebuf.c
@ -296,6 +296,7 @@ int exeBufProcess(pExeBuf self, SicsInterp * pSics,
|
|||||||
DeleteDynString(command);
|
DeleteDynString(command);
|
||||||
if (SCGetInterrupt(pCon) >= eAbortBatch) {
|
if (SCGetInterrupt(pCon) >= eAbortBatch) {
|
||||||
SCWrite(pCon, "ERROR: batch processing interrupted", eError);
|
SCWrite(pCon, "ERROR: batch processing interrupted", eError);
|
||||||
|
InvokeCallBack(pCall, BATCHEND, self->name);
|
||||||
SetStatus(eEager);
|
SetStatus(eEager);
|
||||||
if (pCall != NULL) {
|
if (pCall != NULL) {
|
||||||
InvokeCallBack(pCall, BATCHEND, self->name);
|
InvokeCallBack(pCall, BATCHEND, self->name);
|
||||||
|
Reference in New Issue
Block a user