File: SpringExitCode.h

package info (click to toggle)
spring 105.0.1%2Bdfsg-2
  • links: PTS, VCS
  • area: main
  • in suites: bullseye
  • size: 108,860 kB
  • sloc: cpp: 467,785; ansic: 302,607; python: 12,925; java: 12,201; awk: 5,889; sh: 2,371; xml: 655; perl: 405; php: 276; objc: 194; makefile: 75; sed: 2
file content (24 lines) | stat: -rw-r--r-- 693 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
/* This file is part of the Spring engine (GPL v2 or later), see LICENSE.html */

#ifndef SPRING_EXIT_CODE_H
#define SPRING_EXIT_CODE_H

namespace spring {
	enum {
		EXIT_CODE_CRASHED = -1003, // ErrorHandler::ExitProcess
		EXIT_CODE_NOINIT  = -1002, // SpringApp::Run
		EXIT_CODE_DESYNC  = -1001, // GameServer::CheckSync
		EXIT_CODE_SUCCESS =     0,
		EXIT_CODE_FAILURE =     1, // SpringApp::ParseCmdLine
		EXIT_CODE_TIMEOUT =  1001, // PreGame::UpdateClientNet
		EXIT_CODE_NOLOAD  =  1002, // Game::Load
		EXIT_CODE_KILLED  =  1003, // CrashHandler::ForcedExit
		EXIT_CODE_BADSAVE =  1004, // PreGame::LoadSaveFile
	};

	// only here for validation tests
	extern int exitCode;
};

#endif