commit b07c62845e49d4d9483bdb3740dee8470c3bcadd
parent 723c0edf4794a84b5960daef2ad8672a0e8dd7e2
Author: Remy Noulin <loader2x@gmail.com>
Date: Thu, 26 Dec 2019 09:24:08 +0100
add isO'Class' and isO'Class'G in class template
src/sheepy.h | 3 +++
1 file changed, 3 insertions(+)
Diffstat:
1 file changed, 3 insertions(+), 0 deletions(-)
diff --git a/src/sheepy.h b/src/sheepy.h
@@ -54,6 +54,9 @@ struct {
/* Class classTemplate */\n\
typ struct classTemplate classTemplatet;\n\
\n\
+#define isOClassTemplate(obj) isOType(obj, \"classTemplate\")\n\
+define isOClassTemplatetG isOClassTemplate\n\
+\n\
/* for object inheriting classTemplate, cast to classTemplate to be able to use this class functions and generics*/\n\
#define cClassTemplate(self) ( (classTemplatet*) self )\n\
\n\