aboutsummaryrefslogtreecommitdiffstats
path: root/cparser/Cutil.ml
diff options
context:
space:
mode:
Diffstat (limited to 'cparser/Cutil.ml')
-rw-r--r--cparser/Cutil.ml4
1 files changed, 4 insertions, 0 deletions
diff --git a/cparser/Cutil.ml b/cparser/Cutil.ml
index 6cafaf17..124560e5 100644
--- a/cparser/Cutil.ml
+++ b/cparser/Cutil.ml
@@ -954,6 +954,10 @@ let is_debug_stmt s =
is_debug_call e
| _ -> false
+let is_call_to_fun e s =
+ match e.edesc with
+ | EVar id -> id.C.name = s
+ | _ -> false
(* Assignment compatibility check over attributes.
Standard attributes ("const", "volatile", "restrict") can safely