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 03e071045..fc4544385 100644
--- a/src/types.cpp
+++ b/src/types.cpp
@@ -1210,6 +1210,10 @@ bool is_type_proc(Type *t) {
t = base_type(t);
return t->kind == Type_Proc;
}
+bool is_type_asm_proc(Type *t) {
+ t = base_type(t);
+ return t->kind == Type_Proc && t->Proc.calling_convention == ProcCC_InlineAsm;
+}
bool is_type_poly_proc(Type *t) {
t = base_type(t);
return t->kind == Type_Proc && t->Proc.is_polymorphic;