示例#1
0
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;
  }
示例#2
0
 void get_argument(void* env, int argposition, int& value) {
   value = static_cast<int>( EnvRtnLong(env, argposition) );
 }
示例#3
0
 void get_argument(void* env, int argposition, unsigned& value) {
   value = static_cast<unsigned>( EnvRtnLong(env, argposition) );
 }
示例#4
0
 void get_argument(void* env, int argposition, long& value) {
   value = EnvRtnLong(env, argposition);
 }