aboutsummaryrefslogtreecommitdiff
path: root/src/types.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/types.cpp')
-rw-r--r--src/types.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/types.cpp b/src/types.cpp
index ce0a57dc9..54224373d 100644
--- a/src/types.cpp
+++ b/src/types.cpp
@@ -821,6 +821,10 @@ bool is_type_proc(Type *t) {
t = base_type(t);
return t->kind == Type_Proc;
}
+bool is_type_gen_proc(Type *t) {
+ t = base_type(t);
+ return t->kind == Type_Proc && t->Proc.is_generic;
+}
Type *base_vector_type(Type *t) {
if (is_type_vector(t)) {
t = base_type(t);