docs
Loading...
Searching...
No Matches
Exports.h
Go to the documentation of this file.
1///
2/// Copyright (C) 2026 Ultralight, Inc. All rights reserved.
3/// A license is required for commercial use. https://ultralig.ht
4///
5#ifndef __ULTRALIGHT_EXPORTS_H__
6#define __ULTRALIGHT_EXPORTS_H__
7
8#if defined(__WIN32__) || defined(_WIN32)
9# if defined(ULTRALIGHT_STATIC_BUILD)
10# define UExport
11# else
12# if defined(ULTRALIGHT_IMPLEMENTATION)
13# define UExport __declspec(dllexport)
14# else
15# define UExport __declspec(dllimport)
16# endif
17# endif
18#else
19# if defined(ULTRALIGHT_STATIC_BUILD)
20# define UExport
21# else
22# define UExport __attribute__((visibility("default")))
23# endif
24#endif
25
26// UCExport is for symbols that are exported strictly by UltralightCore
27#if defined(__WIN32__) || defined(_WIN32)
28# if defined(ULTRALIGHT_STATIC_BUILD)
29# define UCExport
30# else
31# if defined(ULTRALIGHT_IMPLEMENTATION) && defined(ULTRALIGHT_MODULE_ULTRALIGHTCORE)
32# define UCExport __declspec(dllexport)
33# else
34# define UCExport __declspec(dllimport)
35# endif
36# endif
37#else
38# if defined(ULTRALIGHT_STATIC_BUILD)
39# define UCExport
40# else
41# define UCExport __attribute__((visibility("default")))
42# endif
43#endif
44
45#endif // __ULTRALIGHT_EXPORTS_H__