summaryrefslogtreecommitdiff
path: root/src/bin/eolian_js/main.cc
diff options
context:
space:
mode:
Diffstat (limited to 'src/bin/eolian_js/main.cc')
-rw-r--r--src/bin/eolian_js/main.cc8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/bin/eolian_js/main.cc b/src/bin/eolian_js/main.cc
index f3f1a75a5c..796aa8693f 100644
--- a/src/bin/eolian_js/main.cc
+++ b/src/bin/eolian_js/main.cc
@@ -311,9 +311,9 @@ _function_return_is_missing(Eolian_Function const* func, Eolian_Function_Type fu
311} 311}
312 312
313bool 313bool
314_type_is_generatable(const Eolian_Type *tp, bool add_pointer) 314_type_is_generatable(const Eolian_Type *tp, bool add_pointer, Eolian_C_Type_Type c_type_type)
315{ 315{
316 std::string c_type = eolian_type_c_type_get(tp); 316 std::string c_type = eolian_type_c_type_get(tp, c_type_type);
317 317
318 if (add_pointer) 318 if (add_pointer)
319 c_type += " *"; 319 c_type += " *";
@@ -343,7 +343,7 @@ _function_is_generatable(const Eolian_Function *function, Eolian_Function_Type f
343 { 343 {
344 auto tp = ::eolian_parameter_type_get(parameter); 344 auto tp = ::eolian_parameter_type_get(parameter);
345 bool add_pointer = eolian_parameter_direction_get(parameter) != EOLIAN_IN_PARAM; 345 bool add_pointer = eolian_parameter_direction_get(parameter) != EOLIAN_IN_PARAM;
346 if (!_type_is_generatable(tp, add_pointer)) 346 if (!_type_is_generatable(tp, add_pointer, EOLIAN_C_TYPE_PARAM))
347 return false; 347 return false;
348 348
349 if (eolian_type_is_ptr(tp) && _function_belongs_to(function, "Efl.Object")) 349 if (eolian_type_is_ptr(tp) && _function_belongs_to(function, "Efl.Object"))
@@ -352,7 +352,7 @@ _function_is_generatable(const Eolian_Function *function, Eolian_Function_Type f
352 352
353 auto rtp = ::eolian_function_return_type_get(function, ftp); 353 auto rtp = ::eolian_function_return_type_get(function, ftp);
354 354
355 return rtp ? _type_is_generatable(rtp, false) : true; 355 return rtp ? _type_is_generatable(rtp, false, EOLIAN_C_TYPE_RETURN) : true;
356} 356}
357 357
358bool 358bool