Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(276)

Side by Side Diff: ppapi/cpp/common.h

Issue 4310002: Make PPAPI headers compile with C compilers (gcc on Linux & Mac and MSVS on W... (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: '' Created 10 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « ppapi/c/ppp_instance.h ('k') | ppapi/cpp/core.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Property Changes:
Added: svn:eol-style
+ LF
OLDNEW
(Empty)
1 // Copyright (c) 2010 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 #ifndef PPAPI_CPP_COMMON_H_
6 #define PPAPI_CPP_COMMON_H_
7
8 /**
9 * @file
10 * Defines the API ...
11 *
12 * @addtogroup CPP
13 * @{
14 */
15
16 #include "ppapi/c/pp_bool.h"
17
18 namespace pp {
19
20 /** Convert a C++ bool to the appropriate PP_Bool value. */
21 inline PP_Bool BoolToPPBool(bool value) {
22 return value ? PP_TRUE : PP_FALSE;
23 }
24
25 /** Convert a PP_Bool to a C++ bool value. */
26 inline bool PPBoolToBool(PP_Bool value) {
27 return !!value;
28 }
29
30 } // namespace pp
31
32 /**
33 * @}
34 * End addtogroup CPP
35 */
36
37 #endif // PPAPI_CPP_COMMON_H_
38
OLDNEW
« no previous file with comments | « ppapi/c/ppp_instance.h ('k') | ppapi/cpp/core.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698