From 9d2728a5605f651934fe67a6fe6986b3e4a2c011 Mon Sep 17 00:00:00 2001 From: Ash Wolf Date: Sun, 20 Nov 2022 00:07:22 -0500 Subject: add a bunch of code and a ton of stub files for later --- includes/compiler/templates.h | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'includes/compiler/templates.h') diff --git a/includes/compiler/templates.h b/includes/compiler/templates.h index 85bc5ec..227dd7b 100644 --- a/includes/compiler/templates.h +++ b/includes/compiler/templates.h @@ -160,6 +160,7 @@ struct TemplClassInst { #define TEMPL_CLASS(ty) ( (TemplClass *) (ty) ) #define TEMPL_CLASS_INST(ty) ( (TemplClassInst *) (ty) ) +#define IS_TEMPL_CLASS(ty) ( IS_TYPE_CLASS(ty) && (TYPE_CLASS(ty)->flags & CLASS_FLAGS_100) ) /*************/ /* Functions */ @@ -189,6 +190,10 @@ struct TemplFuncInstance { // verified via CPrec Boolean static_instantiated; }; +#define TEMPL_FUNC(ty) ( (TemplateFunction *) (ty) ) +#define TEMPL_FUNC_INST(ty) ( (TemplFuncInstance *) (ty) ) +#define IS_TEMPL_FUNC(ty) ( IS_TYPE_FUNC(ty) && (TYPE_FUNC(ty)->flags & FUNC_FLAGS_100000) ) + /***********/ /* Actions */ /***********/ -- cgit v1.2.3