meta/runtime/test.h
2024-03-04 18:21:58 +08:00

43 lines
618 B
C++

#pragma once
#ifndef META_RUNTIME_TEST_H
#define META_RUNTIME_TEST_H
#include "reflection.h"
namespace test {
class TypeDef {};
CLASS(Test)
{
public:
META("Constructor")
Test() : b_(0), a_(0) {}
Test(int a) : b_(0), a_(a) {}
META("Test")
int GetA() const { return a_; }
int kk(int, void *);
TypeDef GetTypeDef() const { return type_def_; }
private:
struct Void {};
STRUCT(VoidMeta, "VoidMeta")
{
META("Enable")
int a;
};
const int b_;
int a_;
META("TypeDef")
TypeDef type_def_;
};
}// namespace test
#endif// META_RUNTIME_TEST_H