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

Side by Side Diff: include/v8.h

Issue 2420603002: Fix import/export annotations for v8 targets that are always static (Closed)
Patch Set: Created 4 years, 2 months 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
OLDNEW
1 // Copyright 2012 the V8 project authors. All rights reserved. 1 // Copyright 2012 the V8 project authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 /** \mainpage V8 API Reference Guide 5 /** \mainpage V8 API Reference Guide
6 * 6 *
7 * V8 is Google's open source JavaScript engine. 7 * V8 is Google's open source JavaScript engine.
8 * 8 *
9 * This set of documents provides reference material generated from the 9 * This set of documents provides reference material generated from the
10 * V8 header file, include/v8.h. 10 * V8 header file, include/v8.h.
(...skipping 17 matching lines...) Expand all
28 // We reserve the V8_* prefix for macros defined in V8 public API and 28 // We reserve the V8_* prefix for macros defined in V8 public API and
29 // assume there are no name conflicts with the embedder's code. 29 // assume there are no name conflicts with the embedder's code.
30 30
31 #ifdef V8_OS_WIN 31 #ifdef V8_OS_WIN
32 32
33 // Setup for Windows DLL export/import. When building the V8 DLL the 33 // Setup for Windows DLL export/import. When building the V8 DLL the
34 // BUILDING_V8_SHARED needs to be defined. When building a program which uses 34 // BUILDING_V8_SHARED needs to be defined. When building a program which uses
35 // the V8 DLL USING_V8_SHARED needs to be defined. When either building the V8 35 // the V8 DLL USING_V8_SHARED needs to be defined. When either building the V8
36 // static library or building a program which uses the V8 static library neither 36 // static library or building a program which uses the V8 static library neither
37 // BUILDING_V8_SHARED nor USING_V8_SHARED should be defined. 37 // BUILDING_V8_SHARED nor USING_V8_SHARED should be defined.
38 #if defined(BUILDING_V8_SHARED) && defined(USING_V8_SHARED)
39 #error both BUILDING_V8_SHARED and USING_V8_SHARED are set - please check the\
40 build configuration to ensure that at most one of these is set
41 #endif
42
43 #ifdef BUILDING_V8_SHARED 38 #ifdef BUILDING_V8_SHARED
44 # define V8_EXPORT __declspec(dllexport) 39 # define V8_EXPORT __declspec(dllexport)
45 #elif USING_V8_SHARED 40 #elif USING_V8_SHARED
46 # define V8_EXPORT __declspec(dllimport) 41 # define V8_EXPORT __declspec(dllimport)
47 #else 42 #else
48 # define V8_EXPORT 43 # define V8_EXPORT
49 #endif // BUILDING_V8_SHARED 44 #endif // BUILDING_V8_SHARED
50 45
51 #else // V8_OS_WIN 46 #else // V8_OS_WIN
52 47
(...skipping 9617 matching lines...) Expand 10 before | Expand all | Expand 10 after
9670 */ 9665 */
9671 9666
9672 9667
9673 } // namespace v8 9668 } // namespace v8
9674 9669
9675 9670
9676 #undef TYPE_CHECK 9671 #undef TYPE_CHECK
9677 9672
9678 9673
9679 #endif // INCLUDE_V8_H_ 9674 #endif // INCLUDE_V8_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698