forked from wetadigital/USDPluginExamples
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathapi.h
33 lines (30 loc) · 1.03 KB
/
api.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
//
// Copyright © 2023 Weta Digital Limited
//
// SPDX-License-Identifier: Apache-2.0
//
#ifndef USDTRI_API_H
#define USDTRI_API_H
#include "pxr/base/arch/export.h"
#if defined(PXR_STATIC)
# define USDTRI_API
# define USDTRI_API_TEMPLATE_CLASS(...)
# define USDTRI_API_TEMPLATE_STRUCT(...)
# define USDTRI_LOCAL
#else
# if defined(USDTRI_EXPORTS)
# define USDTRI_API ARCH_EXPORT
# define USDTRI_API_TEMPLATE_CLASS(...) \
ARCH_EXPORT_TEMPLATE(class, __VA_ARGS__)
# define USDTRI_API_TEMPLATE_STRUCT(...) \
ARCH_EXPORT_TEMPLATE(struct, __VA_ARGS__)
# else
# define USDTRI_API ARCH_IMPORT
# define USDTRI_API_TEMPLATE_CLASS(...) \
ARCH_IMPORT_TEMPLATE(class, __VA_ARGS__)
# define USDTRI_API_TEMPLATE_STRUCT(...) \
ARCH_IMPORT_TEMPLATE(struct, __VA_ARGS__)
# endif
# define USDTRI_LOCAL ARCH_HIDDEN
#endif
#endif