text: /*
  	copied the source file by https://github.com/stackprobe/Factory/blob/master/SubTools/CopyLib.c
  */
  void termination(int errorLevel = 0);
  
  /*
  	copied the source file by https://github.com/stackprobe/Factory/blob/master/SubTools/CopyLib.c
  */
  #define errorCase(status) \
  	do { \
  	if((status)) { \
  		error(); \
  	} \
  	} while(0)
  
  /*
  	copied the source file by https://github.com/stackprobe/Factory/blob/master/SubTools/CopyLib.c
  */
  #define error() \
  	error2(__FILE__, __LINE__, __FUNCTION__)
  
  /*
  	copied the source file by https://github.com/stackprobe/Factory/blob/master/SubTools/CopyLib.c
  */
  void error2(char *file, int lineno, char *function);
  
  /*
  	copied the source file by https://github.com/stackprobe/Factory/blob/master/SubTools/CopyLib.c
  */
  FILE *GetLogFp(void);
  
  #if LOG_ENABLED
  /*
  	copied the source file by https://github.com/stackprobe/Factory/blob/master/SubTools/CopyLib.c
  */
  #define LOG(format, ...) (fprintf(GetLogFp(), format, ## __VA_ARGS__), fflush(GetLogFp()))
  #else
  /*
  	copied the source file by https://github.com/stackprobe/Factory/blob/master/SubTools/CopyLib.c
  */
  #define LOG(format, ...) 1
  #endif
  
  /*
  	copied the source file by https://github.com/stackprobe/Factory/blob/master/SubTools/CopyLib.c
  */
  #define LOGPOS() \
  	LOG("[POS] %s %d %s\n", __FILE__, __LINE__, __FUNCTION__)
  
  /*
  	copied the source file by https://github.com/stackprobe/Factory/blob/master/SubTools/CopyLib.c
  */
  int hasArgs(int count);
  /*
  	copied the source file by https://github.com/stackprobe/Factory/blob/master/SubTools/CopyLib.c
  */
  int argIs(char *spell);
  /*
  	copied the source file by https://github.com/stackprobe/Factory/blob/master/SubTools/CopyLib.c
  */
  char *getArg(int index);
  /*
  	copied the source file by https://github.com/stackprobe/Factory/blob/master/SubTools/CopyLib.c
  */
  char *nextArg(void);
  
  /*
  	copied the source file by https://github.com/stackprobe/Factory/blob/master/SubTools/CopyLib.c
  */
  int IsWindowActive(void);
  /*
  	copied the source file by https://github.com/stackprobe/Factory/blob/master/SubTools/CopyLib.c
  */
  __int64 GetCurrTime(void);
  
  /*
  	copied the source file by https://github.com/stackprobe/Factory/blob/master/SubTools/CopyLib.c
  */
  void execute(char *command);
  /*
  	copied the source file by https://github.com/stackprobe/Factory/blob/master/SubTools/CopyLib.c
  */
  void execute_x(char *command);
  