OLD | NEW |
---|---|
1 /* | 1 /* |
2 * Copyright (C) 2010 Google Inc. All rights reserved. | 2 * Copyright (C) 2010 Google Inc. All rights reserved. |
3 * | 3 * |
4 * Redistribution and use in source and binary forms, with or without | 4 * Redistribution and use in source and binary forms, with or without |
5 * modification, are permitted provided that the following conditions are | 5 * modification, are permitted provided that the following conditions are |
6 * met: | 6 * met: |
7 * | 7 * |
8 * * Redistributions of source code must retain the above copyright | 8 * * Redistributions of source code must retain the above copyright |
9 * notice, this list of conditions and the following disclaimer. | 9 * notice, this list of conditions and the following disclaimer. |
10 * * Redistributions in binary form must reproduce the above | 10 * * Redistributions in binary form must reproduce the above |
(...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
53 #if BLINK_PLATFORM_IMPLEMENTATION | 53 #if BLINK_PLATFORM_IMPLEMENTATION |
54 #define BLINK_PLATFORM_EXPORT __declspec(dllexport) | 54 #define BLINK_PLATFORM_EXPORT __declspec(dllexport) |
55 #else // BLINK_PLATFORM_IMPLEMENTATION | 55 #else // BLINK_PLATFORM_IMPLEMENTATION |
56 #define BLINK_PLATFORM_EXPORT __declspec(dllimport) | 56 #define BLINK_PLATFORM_EXPORT __declspec(dllimport) |
57 #endif | 57 #endif |
58 #if BLINK_COMMON_IMPLEMENTATION | 58 #if BLINK_COMMON_IMPLEMENTATION |
59 #define BLINK_COMMON_EXPORT __declspec(dllexport) | 59 #define BLINK_COMMON_EXPORT __declspec(dllexport) |
60 #else // BLINK_COMMON_IMPLEMENTATION | 60 #else // BLINK_COMMON_IMPLEMENTATION |
61 #define BLINK_COMMON_EXPORT __declspec(dllimport) | 61 #define BLINK_COMMON_EXPORT __declspec(dllimport) |
62 #endif | 62 #endif |
63 #define BLINK_PLATFORM_HIDDEN | |
dcheng
2016/03/07 04:42:08
I wouldn't change these macros.
Mostyn Bramley-Moore
2016/03/07 06:38:31
OK. BTW, the presubmit hooks complain that macros
| |
64 #define BLINK_PLATFORM_EXPORT_CLASS | |
63 #else // defined(WIN32) | 65 #else // defined(WIN32) |
66 #define BLINK_PLATFORM_HIDDEN __attribute__((visibility("hidden"))) | |
64 #define BLINK_EXPORT __attribute__((visibility("default"))) | 67 #define BLINK_EXPORT __attribute__((visibility("default"))) |
65 #define BLINK_PLATFORM_EXPORT __attribute__((visibility("default"))) | 68 #define BLINK_PLATFORM_EXPORT BLINK_EXPORT |
66 #define BLINK_COMMON_EXPORT __attribute__((visibility("default"))) | 69 #define BLINK_PLATFORM_EXPORT_CLASS BLINK_EXPORT |
70 #define BLINK_COMMON_EXPORT BLINK_EXPORT | |
67 #endif | 71 #endif |
68 #else // defined(COMPONENT_BUILD) | 72 #else // defined(COMPONENT_BUILD) |
69 #define BLINK_EXPORT | 73 #define BLINK_EXPORT |
70 #define BLINK_PLATFORM_EXPORT | 74 #define BLINK_PLATFORM_EXPORT |
75 #define BLINK_PLATFORM_EXPORT_CLASS | |
76 #define BLINK_PLATFORM_HIDDEN | |
71 #define BLINK_COMMON_EXPORT | 77 #define BLINK_COMMON_EXPORT |
72 #endif | 78 #endif |
73 | 79 |
74 | 80 |
75 // ----------------------------------------------------------------------------- | 81 // ----------------------------------------------------------------------------- |
76 // Basic types | 82 // Basic types |
77 | 83 |
78 #include <stddef.h> // For size_t | 84 #include <stddef.h> // For size_t |
79 #include <stdint.h> // For int32_t | 85 #include <stdint.h> // For int32_t |
80 | 86 |
(...skipping 25 matching lines...) Expand all Loading... | |
106 #else | 112 #else |
107 #define BLINK_ASSERT(assertion) do { \ | 113 #define BLINK_ASSERT(assertion) do { \ |
108 if (!(assertion)) \ | 114 if (!(assertion)) \ |
109 failedAssertion(__FILE__, __LINE__, __FUNCTION__, #assertion); \ | 115 failedAssertion(__FILE__, __LINE__, __FUNCTION__, #assertion); \ |
110 } while (0) | 116 } while (0) |
111 #endif | 117 #endif |
112 | 118 |
113 #define BLINK_ASSERT_NOT_REACHED() BLINK_ASSERT(0) | 119 #define BLINK_ASSERT_NOT_REACHED() BLINK_ASSERT(0) |
114 | 120 |
115 #endif | 121 #endif |
OLD | NEW |