Files
sics/site_ansto/anstoutil.h
Ferdi Franceschini 3a7e6a9768 Added "abortbatch" command for use within batch files.
It gives a user the option of  aborting a batch file if their code detects an error.

r2192 | ffr | 2007-10-23 12:46:16 +1000 (Tue, 23 Oct 2007) | 3 lines
2012-11-15 13:26:38 +11:00

13 lines
475 B
C

#ifndef ANSTOUTIL_H
#define ANSTOUTIL_H
#define _REQUIRED 1
#define _OPTIONAL 0
#define ERRLEN 256
#define FAILURE 0
#define SUCCESS 1
char *getParam(SConnection *pCon, Tcl_Interp *pTcl, char *params, char *parName, int mustHave );
int portNumCmd(SConnection *pCon, SicsInterp *pInter, void *pData, int argc, char *argv[]);
int getPortNum(SConnection *pCon, char *portName);
int AbortBatch(SConnection *pCon, SicsInterp *pInter, void *pData, int argc, char *argv[]);
#endif