Skip to content

Commit

Permalink
Allow qualified names for function dependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
ddemidov committed May 14, 2014
1 parent 1e4d2bc commit d3ab3a6
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions vexcl/function.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -150,8 +150,10 @@ VEX_FUNCTION_V1(diff_cube, double(double, double),
VEXCL_FUNCTION_NTH_ARG_NAME(n, args));

#define VEXCL_FUNCTION_DEFINE_DEP(z, data, dep) \
typedef decltype(dep) BOOST_PP_CAT(dep, _type); \
BOOST_PP_CAT(dep, _type)::define(src);
{ \
typedef decltype(dep) dep_type; \
dep_type::define(src); \
}

#define VEX_FUNCTION_SINK(rtype, func_name, nargs, args, deps, body) \
struct vex_function_##func_name \
Expand Down

0 comments on commit d3ab3a6

Please sign in to comment.