summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Zaoui <daniel.zaoui@samsung.com>2016-03-01 08:25:36 +0200
committerDaniel Zaoui <daniel.zaoui@samsung.com>2016-03-01 08:25:36 +0200
commitbf8068b7e1dbfefb2772be0d8d216774456efd2e (patch)
treedd0eb1e1a6540858484a1bfa9663dffe2d1b7412
parente6617e766a22b05113536e1fae72dcc9e08ed1f7 (diff)
Add error information when a function parameter is not recognized
-rw-r--r--src/bin/stealer_gen.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/bin/stealer_gen.c b/src/bin/stealer_gen.c
index 50fabc5..e33f6a4 100644
--- a/src/bin/stealer_gen.c
+++ b/src/bin/stealer_gen.c
@@ -85,7 +85,11 @@ _function_generate(const Eolian_Function *foo, Eina_Strbuf *buf)
85 EINA_ITERATOR_FOREACH(pitr, p) 85 EINA_ITERATOR_FOREACH(pitr, p)
86 { 86 {
87 if (!_param_generate(p, full, ptrs, types, values)) 87 if (!_param_generate(p, full, ptrs, types, values))
88 goto end; 88 {
89 fprintf(stderr, "Function %s - parameter %s not recognized\n",
90 full_fname, eolian_parameter_name_get(p));
91 goto end;
92 }
89 } 93 }
90 eina_iterator_free(pitr); 94 eina_iterator_free(pitr);
91 95