method_impl_printer::print_callback_method_body: check type of possible callback
commitea68e6cf0cfb1a7e7e3bcbe2d499821092db21d4
authorSven Verdoolaege <sven@cerebras.net>
Wed, 31 Mar 2021 12:35:17 +0000 (31 14:35 +0200)
committerSven Verdoolaege <sven@cerebras.net>
Mon, 6 Sep 2021 20:36:16 +0000 (6 22:36 +0200)
tree2591ec26bb1774df734311fb80d8732bbbcc37ae
parent1dfaef65aaf04f377a52063c2799c016341d6212
method_impl_printer::print_callback_method_body: check type of possible callback

That is, instead of checking whether a function parameter
is equal to a previously detected callback, directly
check whether the function parameter is a callback.
This prepares for supporting multiple callbacks.

Signed-off-by: Sven Verdoolaege <sven@cerebras.net>
interface/template_cpp.cc