36 lines
641 B
C
Raw Normal View History

2015-11-17 17:22:37 +01:00
#ifndef _MSC_VER
2018-08-09 18:06:22 +02:00
# define winexport
2015-11-17 17:22:37 +01:00
#else
2018-08-09 18:06:22 +02:00
# ifdef autoexport_EXPORTS
# define winexport
# else
# define winexport __declspec(dllimport)
# endif
2015-11-17 17:22:37 +01:00
#endif
class Hello
{
public:
static winexport int Data;
void real();
static void operator delete[](void*);
static void operator delete(void*);
};
2023-07-02 19:51:09 +02:00
// In the MSVC ABI, a delegating constructor references the vftable.
#if __cplusplus >= 201103L || (defined(_MSVC_LANG) && _MSVC_LANG >= 201103L)
# define HELLO_VFTABLE
#endif
#ifdef HELLO_VFTABLE
class HelloVFTable
{
public:
HelloVFTable();
HelloVFTable(int)
: HelloVFTable()
{
}
virtual ~HelloVFTable();
};
#endif