Project

General

Profile

Bug #7407 » Sample.h

Georg Baumann, 01/20/2020 09:50 AM

 
#ifndef WT_TARGET_JAVA

#define SAMPLE_BEGIN(name) \
namespace { \
Wt::WWidget *name() {

#define SAMPLE_BEGIN2(type, name) \
namespace { \
type name() {

#define SAMPLE_END(...) __VA_ARGS__; } }

#else

#ifdef SAMPLE_BEGIN
#undef SAMPLE_BEGIN
#endif

#define SAMPLE_BEGIN(name) \
namespace { \
extern Wt::WWidget *name() {

#ifdef SAMPLE_BEGIN2
#undef SAMPLE_BEGIN2
#endif

#define SAMPLE_BEGIN2(type, name) \
namespace { \
extern type name() {

#ifdef SAMPLE_END
#undef SAMPLE_END
#endif

#define SAMPLE_END(...) __VA_ARGS__; } }

#endif
(1-1/2)