v8
V8 is Google’s open source high-performance JavaScript and WebAssembly engine, written in C++.
Loading...
Searching...
No Matches
base-export.h
Go to the documentation of this file.
1// Copyright 2016 the V8 project authors. All rights reserved.
2// Use of this source code is governed by a BSD-style license that can be
3// found in the LICENSE file.
4
5#ifndef V8_BASE_BASE_EXPORT_H_
6#define V8_BASE_BASE_EXPORT_H_
7
8#include "include/v8config.h"
9
10#if V8_OS_WIN
11
12#ifdef BUILDING_V8_BASE_SHARED
13#define V8_BASE_EXPORT __declspec(dllexport)
14#elif USING_V8_BASE_SHARED
15#define V8_BASE_EXPORT __declspec(dllimport)
16#else
17#define V8_BASE_EXPORT
18#endif // BUILDING_V8_BASE_SHARED
19
20#else // !V8_OS_WIN
21
22// Setup for Linux shared library export.
23#if defined(BUILDING_V8_BASE_SHARED) || USING_V8_BASE_SHARED
24#define V8_BASE_EXPORT __attribute__((visibility("default")))
25#else
26#define V8_BASE_EXPORT
27#endif // defined(BUILDING_V8_BASE_SHARED) || ...
28
29#endif // V8_OS_WIN
30
31#endif // V8_BASE_BASE_EXPORT_H_