You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

20 lines
377 B

#ifndef _SYSYF_INTERNAL_MACROS_H_
#define _SYSYF_INTERNAL_MACROS_H_
#include "internal_types.h"
namespace SysYF
{
#define _RET_AFTER_INIT(t, ...) \
{ \
auto tmp = Ptr<t>(new t(__VA_ARGS__)); \
tmp->init(__VA_ARGS__) ; \
return tmp; \
}
#define RET_AFTER_INIT(t, ...) _RET_AFTER_INIT(t, ##__VA_ARGS__)
}
#endif // _SYSYF_INTERNAL_MACROS_H_