globle void ExitCommand( void *theEnv) { int argCnt; int status; if ((argCnt = EnvArgCountCheck(theEnv,"exit",NO_MORE_THAN,1)) == -1) return; if (argCnt == 0) { EnvExitRouter(theEnv,EXIT_SUCCESS); } else { status = (int) EnvRtnLong(theEnv,1); if (GetEvaluationError(theEnv)) return; EnvExitRouter(theEnv,status); } return; }
void get_argument(void* env, int argposition, int& value) { value = static_cast<int>( EnvRtnLong(env, argposition) ); }
void get_argument(void* env, int argposition, unsigned& value) { value = static_cast<unsigned>( EnvRtnLong(env, argposition) ); }
void get_argument(void* env, int argposition, long& value) { value = EnvRtnLong(env, argposition); }