Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1169)

Side by Side Diff: include/v8.h

Issue 11413113: Enable deprecations. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Whitespace only Created 8 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « no previous file | src/api.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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. 79 #if defined(__GNUC__) && !V8_DISABLE_DEPRECATIONS
80 #define V8_DISABLE_DEPRECATIONS 1
81
82 #if defined(__GNUC__) && !defined(V8_DISABLE_DEPRECATIONS)
83 #define V8_DEPRECATED(func) func __attribute__ ((deprecated)) 80 #define V8_DEPRECATED(func) func __attribute__ ((deprecated))
84 #elif defined(_MSC_VER) && !defined(V8_DISABLE_DEPRECATIONS) 81 #elif defined(_MSC_VER) && !V8_DISABLE_DEPRECATIONS
85 #define V8_DEPRECATED(func) __declspec(deprecated) func 82 #define V8_DEPRECATED(func) __declspec(deprecated) func
86 #else 83 #else
87 #define V8_DEPRECATED(func) func 84 #define V8_DEPRECATED(func) func
88 #endif 85 #endif
89 86
90 /** 87 /**
91 * The v8 JavaScript engine. 88 * The v8 JavaScript engine.
92 */ 89 */
93 namespace v8 { 90 namespace v8 {
94 91
(...skipping 4714 matching lines...) Expand 10 before | Expand all | Expand 10 after
4809 4806
4810 4807
4811 } // namespace v8 4808 } // namespace v8
4812 4809
4813 4810
4814 #undef V8EXPORT 4811 #undef V8EXPORT
4815 #undef TYPE_CHECK 4812 #undef TYPE_CHECK
4816 4813
4817 4814
4818 #endif // V8_H_ 4815 #endif // V8_H_
OLDNEW
« no previous file with comments | « no previous file | src/api.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698