aboutsummaryrefslogtreecommitdiff
path: root/src/types.cpp
diff options
context:
space:
mode:
authorGinger Bill <bill@gingerbill.org>2017-06-25 17:36:10 +0100
committerGinger Bill <bill@gingerbill.org>2017-06-25 17:36:10 +0100
commitc4081393c1ca0b1c259cdba572b32c266bc53c5c (patch)
treea6c8b4e655b07a9d611199cb8d124c69069dde0e /src/types.cpp
parent1d81b73df9922f0d3006a2d8031bf44f88573224 (diff)
Fix typo for some built-in procedures
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);