| 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 47 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 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 #else // defined(WIN32) | 63 #else // defined(WIN32) |
| 64 #define BLINK_EXPORT __attribute__((visibility("default"))) | 64 #define BLINK_EXPORT __attribute__((visibility("default"))) |
| 65 #define BLINK_PLATFORM_EXPORT __attribute__((visibility("default"))) | 65 #define BLINK_PLATFORM_EXPORT __attribute__((visibility("default"))) |
| 66 #define BLINK_COMMON_EXPORT __attribute__((visibility("default"))) | 66 #define BLINK_COMMON_EXPORT __attribute__((visibility("default"))) |
| 67 #endif | 67 #endif |
| 68 | |
| 69 #if BLINK_IMPLEMENTATION && !BLINK_CORE_IMPLEMENTATION && !BLINK_MODULES_IMP
LEMENTATION | |
| 70 #define BLINK_WEB_IMPLEMENTATION 1 | |
| 71 #else | |
| 72 #define BLINK_WEB_IMPLEMENTATION 0 | |
| 73 #endif | |
| 74 #else // defined(COMPONENT_BUILD) | 68 #else // defined(COMPONENT_BUILD) |
| 75 #define BLINK_EXPORT | 69 #define BLINK_EXPORT |
| 76 #define BLINK_PLATFORM_EXPORT | 70 #define BLINK_PLATFORM_EXPORT |
| 77 #define BLINK_COMMON_EXPORT | 71 #define BLINK_COMMON_EXPORT |
| 78 | |
| 79 #define BLINK_WEB_IMPLEMENTATION 0 | |
| 80 #endif | 72 #endif |
| 81 | 73 |
| 82 | 74 |
| 83 // ----------------------------------------------------------------------------- | 75 // ----------------------------------------------------------------------------- |
| 84 // Basic types | 76 // Basic types |
| 85 | 77 |
| 86 #include <stddef.h> // For size_t | 78 #include <stddef.h> // For size_t |
| 87 #include <stdint.h> // For int32_t | 79 #include <stdint.h> // For int32_t |
| 88 | 80 |
| 89 namespace blink { | 81 namespace blink { |
| (...skipping 24 matching lines...) Expand all Loading... |
| 114 #else | 106 #else |
| 115 #define BLINK_ASSERT(assertion) do { \ | 107 #define BLINK_ASSERT(assertion) do { \ |
| 116 if (!(assertion)) \ | 108 if (!(assertion)) \ |
| 117 failedAssertion(__FILE__, __LINE__, __FUNCTION__, #assertion); \ | 109 failedAssertion(__FILE__, __LINE__, __FUNCTION__, #assertion); \ |
| 118 } while (0) | 110 } while (0) |
| 119 #endif | 111 #endif |
| 120 | 112 |
| 121 #define BLINK_ASSERT_NOT_REACHED() BLINK_ASSERT(0) | 113 #define BLINK_ASSERT_NOT_REACHED() BLINK_ASSERT(0) |
| 122 | 114 |
| 123 #endif | 115 #endif |
| OLD | NEW |