cpp_generator::print_method_impl: do not assume return type in case of callback
commit880ab77fbf46d435fdee995c2e1c9d937dbccf5e
authorSven Verdoolaege <sven.verdoolaege@gmail.com>
Fri, 13 Jul 2018 07:31:49 +0000 (13 09:31 +0200)
committerSven Verdoolaege <sven.verdoolaege@gmail.com>
Wed, 8 Aug 2018 07:57:51 +0000 (8 09:57 +0200)
tree5d8d39ffdf98e3821d643fe7ec8d48132774e55b
parent2db1970e96066a60022a1e958d4a17b266ee0073
cpp_generator::print_method_impl: do not assume return type in case of callback

Ever since it was introduced in isl-0.18-599-g7d3c260fb (cpp: support
methods and constructors, Thu Apr 13 21:42:03 2017 +0200),
cpp_generator::print_method_impl has special handling of the return type
of a function that has a callback, apparently assuming this return type
is always isl_stat.  Explicitly check the return type instead.

Signed-off-by: Sven Verdoolaege <sven.verdoolaege@gmail.com>
interface/cpp.cc