Ninja
exit_status.h
Go to the documentation of this file.
1
// Copyright 2011 Google Inc. All Rights Reserved.
2
//
3
// Licensed under the Apache License, Version 2.0 (the "License");
4
// you may not use this file except in compliance with the License.
5
// You may obtain a copy of the License at
6
//
7
// http://www.apache.org/licenses/LICENSE-2.0
8
//
9
// Unless required by applicable law or agreed to in writing, software
10
// distributed under the License is distributed on an "AS IS" BASIS,
11
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12
// See the License for the specific language governing permissions and
13
// limitations under the License.
14
15
#ifndef NINJA_EXIT_STATUS_H_
16
#define NINJA_EXIT_STATUS_H_
17
18
// The underlying type of the ExitStatus enum, used to represent a platform-specific
19
// process exit code.
20
#ifdef _WIN32
21
#define EXIT_STATUS_TYPE unsigned long
22
#else
// !_WIN32
23
#define EXIT_STATUS_TYPE int
24
#endif
// !_WIN32
25
26
27
enum
ExitStatus
:
EXIT_STATUS_TYPE
{
28
ExitSuccess
=0,
29
ExitFailure
,
30
ExitInterrupted
=130,
31
};
32
33
#endif
// NINJA_EXIT_STATUS_H_
ExitStatus
ExitStatus
Definition:
exit_status.h:27
ExitInterrupted
@ ExitInterrupted
Definition:
exit_status.h:30
ExitFailure
@ ExitFailure
Definition:
exit_status.h:29
ExitSuccess
@ ExitSuccess
Definition:
exit_status.h:28
EXIT_STATUS_TYPE
#define EXIT_STATUS_TYPE
Definition:
exit_status.h:23
Generated by
1.9.1