Exemple #1
0
void Scanner::Stop_Scan(Program_Options const& program_options, Warn_Machine & warn_machine){

	//halt and maybe fix errors
	Red_Message("Scan Halted.\n");
	if (program_options.Fix_Warnings()){
		warn_machine.Fix_Warnings(program_options.Prompt_Automatic_Warning_Fixes());
   }

	exit(EXIT_FAILURE);
  }
Exemple #2
0
void Red_Message_And_Flush(std::string const& str){
	Red_Message(str);
	std::cout.flush();
	return;
}
Exemple #3
0
void Exit_With_Error_Message(std::string const& str){
	Red_Message(str);
	exit(EXIT_SUCCESS);
	return;
}