From eed7594cc942129127559f4bf976570f730b8b86 Mon Sep 17 00:00:00 2001 From: mrb0nk500 Date: Sun, 29 Jan 2023 17:04:36 -0400 Subject: pso: add `macros.h` --- include/pso/TObject.h | 13 ++++++------- 1 file changed, 6 insertions(+), 7 deletions(-) (limited to 'include/pso/TObject.h') diff --git a/include/pso/TObject.h b/include/pso/TObject.h index 74d7d1c..b5f7dee 100644 --- a/include/pso/TObject.h +++ b/include/pso/TObject.h @@ -1,13 +1,11 @@ -#pragma once -#include "types.h" +#ifndef TOBJECT_H +#define TOBJECT_H -#define OBJECT_NAMES \ - o(TObject) +#include "pso/macros.h" +#include "types.h" -/*#define CREATE_CTOR(type, parent_type) \ - const char *type##_name = #type; \ - type::type(parent_type *parent)*/ +OBJECT_NAME(TObject) class TObject { public: @@ -112,3 +110,4 @@ private: return this->flags & flags; }; }; +#endif -- cgit v1.2.3-13-gbd6f