Audacity 3.2.0
CRTPBase.h
Go to the documentation of this file.
1/**********************************************************************
2
3 Audacity: A Digital Audio Editor
4
5 @file CRTPBase.h
6
7 Paul Licameli
8
9 **********************************************************************/
10#ifndef __AUDACITY_CRTP_BASE__
11#define __AUDACITY_CRTP_BASE__
12
13#ifdef _WIN32
32 #define CRTP_BASE(alias, struct_or_class, ...) \
33 template struct_or_class __declspec(dllexport) __VA_ARGS__; \
34 using alias = __VA_ARGS__
35#else
36 #define CRTP_BASE(alias, struct_or_class, ...) \
37 using alias = __VA_ARGS__
38#endif
39
40#endif