Pepper_56_C_interfaces
Pepper_56_C_interfaces
Main Page
Modules
Classes
Files
File List
File Members
All
Classes
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Macros
Groups
pp_bool.h
Go to the documentation of this file.
1
/* Copyright (c) 2012 The Chromium Authors. All rights reserved.
2
* Use of this source code is governed by a BSD-style license that can be
3
* found in the LICENSE file.
4
*/
5
6
/* From pp_bool.idl modified Thu Nov 1 13:48:33 2012. */
7
8
#ifndef PPAPI_C_PP_BOOL_H_
9
#define PPAPI_C_PP_BOOL_H_
10
11
#include "
ppapi/c/pp_macros.h
"
12
30
typedef
enum
{
31
PP_FALSE = 0,
32
PP_TRUE = 1
33
}
PP_Bool
;
34
PP_COMPILE_ASSERT_SIZE_IN_BYTES(
PP_Bool
, 4);
39
#ifdef __cplusplus
40
47
inline
PP_Bool
PP_FromBool(
bool
b) {
48
return
b ? PP_TRUE : PP_FALSE;
49
}
50
58
inline
bool
PP_ToBool(
PP_Bool
b) {
59
return
(b != PP_FALSE);
60
}
61
62
#endif
/* __cplusplus */
63
64
#endif
/* PPAPI_C_PP_BOOL_H_ */
65
pp_macros.h
PP_Bool
PP_Bool
Definition:
pp_bool.h:30
ppapi
c
pp_bool.h
Generated by
1.8.6