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

Side by Side Diff: runtime/platform/globals.h

Issue 1130753006: Hide Isolate pointer from embedder (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 5 years, 7 months 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
OLDNEW
1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
2 // for details. All rights reserved. Use of this source code is governed by a 2 // for details. All rights reserved. Use of this source code is governed by a
3 // BSD-style license that can be found in the LICENSE file. 3 // BSD-style license that can be found in the LICENSE file.
4 4
5 #ifndef PLATFORM_GLOBALS_H_ 5 #ifndef PLATFORM_GLOBALS_H_
6 #define PLATFORM_GLOBALS_H_ 6 #define PLATFORM_GLOBALS_H_
7 7
8 // __STDC_FORMAT_MACROS has to be defined before including <inttypes.h> to 8 // __STDC_FORMAT_MACROS has to be defined before including <inttypes.h> to
9 // enable platform independent printf format specifiers. 9 // enable platform independent printf format specifiers.
10 #ifndef __STDC_FORMAT_MACROS 10 #ifndef __STDC_FORMAT_MACROS
(...skipping 253 matching lines...) Expand 10 before | Expand all | Expand 10 after
264 #endif 264 #endif
265 265
266 266
267 // Short form printf format specifiers 267 // Short form printf format specifiers
268 #define Pd PRIdPTR 268 #define Pd PRIdPTR
269 #define Pu PRIuPTR 269 #define Pu PRIuPTR
270 #define Px PRIxPTR 270 #define Px PRIxPTR
271 #define Pd64 PRId64 271 #define Pd64 PRId64
272 #define Pu64 PRIu64 272 #define Pu64 PRIu64
273 #define Px64 PRIx64 273 #define Px64 PRIx64
274 274 // Printing a Dart_Isolate
275 #define Piso PRId64
275 276
276 // Suffixes for 64-bit integer literals. 277 // Suffixes for 64-bit integer literals.
277 #ifdef _MSC_VER 278 #ifdef _MSC_VER
278 #define DART_INT64_C(x) x##I64 279 #define DART_INT64_C(x) x##I64
279 #define DART_UINT64_C(x) x##UI64 280 #define DART_UINT64_C(x) x##UI64
280 #else 281 #else
281 #define DART_INT64_C(x) x##LL 282 #define DART_INT64_C(x) x##LL
282 #define DART_UINT64_C(x) x##ULL 283 #define DART_UINT64_C(x) x##ULL
283 #endif 284 #endif
284 285
(...skipping 259 matching lines...) Expand 10 before | Expand all | Expand 10 after
544 // should be counted from two, not one." 545 // should be counted from two, not one."
545 #define PRINTF_ATTRIBUTE(string_index, first_to_check) \ 546 #define PRINTF_ATTRIBUTE(string_index, first_to_check) \
546 __attribute__((__format__(__printf__, string_index, first_to_check))) 547 __attribute__((__format__(__printf__, string_index, first_to_check)))
547 #else 548 #else
548 #define PRINTF_ATTRIBUTE(string_index, first_to_check) 549 #define PRINTF_ATTRIBUTE(string_index, first_to_check)
549 #endif 550 #endif
550 551
551 } // namespace dart 552 } // namespace dart
552 553
553 #endif // PLATFORM_GLOBALS_H_ 554 #endif // PLATFORM_GLOBALS_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698