summaryrefslogtreecommitdiff
path: root/src/bin
diff options
context:
space:
mode:
authorVitor Sousa <vitorsousasilva@gmail.com>2015-01-05 15:41:37 -0200
committerVitor Sousa <vitorsousasilva@gmail.com>2015-01-05 15:52:27 -0200
commit666b0da912db102c048cd2fd5a964dedfd956b56 (patch)
tree62b8bd69247ed80673564d14ea71a88476702735 /src/bin
parentb713342987703e08b455b1c579084b35c41c6169 (diff)
eolian_cxx: Using eina::optional to handle parameters without @nonull property
Diffstat (limited to 'src/bin')
-rw-r--r--src/bin/eolian_cxx/eolian_wrappers.hh4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/bin/eolian_cxx/eolian_wrappers.hh b/src/bin/eolian_cxx/eolian_wrappers.hh
index 477173959b..d1b28a6f5f 100644
--- a/src/bin/eolian_cxx/eolian_wrappers.hh
+++ b/src/bin/eolian_cxx/eolian_wrappers.hh
@@ -359,6 +359,10 @@ parameter_type(Eolian_Function_Parameter const& parameter,
359 if (!type.front().binding.empty()) 359 if (!type.front().binding.empty())
360 type.front().binding.insert(0, "const "); 360 type.front().binding.insert(0, "const ");
361 } 361 }
362 if (::eolian_parameter_is_nonull(&parameter))
363 {
364 type.is_nonull = true;
365 }
362 return type; 366 return type;
363} 367}
364 368