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

37 lines
502 B
C++

#pragma once
#ifndef META_RUNTIME_TEST_H
#define META_RUNTIME_TEST_H
#include "reflection.h"
namespace test {
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 *);
private:
struct Void {};
STRUCT(VoidMeta, "VoidMeta")
{
META("Enable")
int a;
};
const int b_;
int a_;
};
}// namespace test
#endif// META_RUNTIME_TEST_H