OLD | NEW |
---|---|
1 // Copyright 2012 the V8 project authors. All rights reserved. | 1 // Copyright 2012 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 58 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
69 #define V8EXPORT __attribute__ ((visibility("default"))) | 69 #define V8EXPORT __attribute__ ((visibility("default"))) |
70 #else | 70 #else |
71 #define V8EXPORT | 71 #define V8EXPORT |
72 #endif | 72 #endif |
73 #else | 73 #else |
74 #define V8EXPORT | 74 #define V8EXPORT |
75 #endif | 75 #endif |
76 | 76 |
77 #endif // _WIN32 | 77 #endif // _WIN32 |
78 | 78 |
79 // TODO(svenpanne) Remove this when the Chrome's v8 bindings have been adapted. | |
80 #define V8_DISABLE_DEPRECATIONS 1 | |
81 | 79 |
Michael Starzinger
2012/11/21 09:47:29
Drop the second empty newline.
| |
82 #if defined(__GNUC__) && !defined(V8_DISABLE_DEPRECATIONS) | 80 #if defined(__GNUC__) && !V8_DISABLE_DEPRECATIONS |
83 #define V8_DEPRECATED(func) func __attribute__ ((deprecated)) | 81 #define V8_DEPRECATED(func) func __attribute__ ((deprecated)) |
84 #elif defined(_MSC_VER) && !defined(V8_DISABLE_DEPRECATIONS) | 82 #elif defined(_MSC_VER) && !V8_DISABLE_DEPRECATIONS |
85 #define V8_DEPRECATED(func) __declspec(deprecated) func | 83 #define V8_DEPRECATED(func) __declspec(deprecated) func |
86 #else | 84 #else |
87 #define V8_DEPRECATED(func) func | 85 #define V8_DEPRECATED(func) func |
88 #endif | 86 #endif |
89 | 87 |
90 /** | 88 /** |
91 * The v8 JavaScript engine. | 89 * The v8 JavaScript engine. |
92 */ | 90 */ |
93 namespace v8 { | 91 namespace v8 { |
94 | 92 |
(...skipping 4714 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
4809 | 4807 |
4810 | 4808 |
4811 } // namespace v8 | 4809 } // namespace v8 |
4812 | 4810 |
4813 | 4811 |
4814 #undef V8EXPORT | 4812 #undef V8EXPORT |
4815 #undef TYPE_CHECK | 4813 #undef TYPE_CHECK |
4816 | 4814 |
4817 | 4815 |
4818 #endif // V8_H_ | 4816 #endif // V8_H_ |
OLD | NEW |