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