| OLD | NEW |
| 1 // Copyright 2008 the V8 project authors. All rights reserved. | 1 // Copyright 2008 the V8 project authors. All rights reserved. |
| 2 // Redistribution and use in source and binary forms, with or without | 2 // Redistribution and use in source and binary forms, with or without |
| 3 // modification, are permitted provided that the following conditions are | 3 // modification, are permitted provided that the following conditions are |
| 4 // met: | 4 // met: |
| 5 // | 5 // |
| 6 // * Redistributions of source code must retain the above copyright | 6 // * Redistributions of source code must retain the above copyright |
| 7 // notice, this list of conditions and the following disclaimer. | 7 // notice, this list of conditions and the following disclaimer. |
| 8 // * Redistributions in binary form must reproduce the above | 8 // * Redistributions in binary form must reproduce the above |
| 9 // copyright notice, this list of conditions and the following | 9 // copyright notice, this list of conditions and the following |
| 10 // disclaimer in the documentation and/or other materials provided | 10 // disclaimer in the documentation and/or other materials provided |
| (...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 48 #elif USING_V8_SHARED | 48 #elif USING_V8_SHARED |
| 49 #define EXPORT __declspec(dllimport) | 49 #define EXPORT __declspec(dllimport) |
| 50 #else | 50 #else |
| 51 #define EXPORT | 51 #define EXPORT |
| 52 #endif | 52 #endif |
| 53 | 53 |
| 54 #else // _WIN32 | 54 #else // _WIN32 |
| 55 | 55 |
| 56 // Setup for Linux shared library export. See v8.h in this directory for | 56 // Setup for Linux shared library export. See v8.h in this directory for |
| 57 // information on how to build/use V8 as shared library. | 57 // information on how to build/use V8 as shared library. |
| 58 #if defined(__GNUC__) && (__GNUC__ >= 4) | 58 #if defined(__GNUC__) && (__GNUC__ >= 4) && defined(V8_SHARED) |
| 59 #define EXPORT __attribute__ ((visibility("default"))) | 59 #define EXPORT __attribute__ ((visibility("default"))) |
| 60 #else // defined(__GNUC__) && (__GNUC__ >= 4) | 60 #else // defined(__GNUC__) && (__GNUC__ >= 4) |
| 61 #define EXPORT | 61 #define EXPORT |
| 62 #endif // defined(__GNUC__) && (__GNUC__ >= 4) | 62 #endif // defined(__GNUC__) && (__GNUC__ >= 4) |
| 63 | 63 |
| 64 #endif // _WIN32 | 64 #endif // _WIN32 |
| 65 | 65 |
| 66 | 66 |
| 67 /** | 67 /** |
| 68 * Debugger support for the V8 JavaScript engine. | 68 * Debugger support for the V8 JavaScript engine. |
| (...skipping 172 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 241 }; | 241 }; |
| 242 | 242 |
| 243 | 243 |
| 244 } // namespace v8 | 244 } // namespace v8 |
| 245 | 245 |
| 246 | 246 |
| 247 #undef EXPORT | 247 #undef EXPORT |
| 248 | 248 |
| 249 | 249 |
| 250 #endif // V8_V8_DEBUG_H_ | 250 #endif // V8_V8_DEBUG_H_ |
| OLD | NEW |