/usr/include/boost/compute/functional/detail
Edit: /usr/include/boost/compute/functional/detail/macros.hpp (1256B)
//---------------------------------------------------------------------------//
// Copyright (c) 2013 Kyle Lutz
//
// Distributed under the Boost Software License, Version 1.0
// See accompanying file LICENSE_1_0.txt or copy at
// http://www.boost.org/LICENSE_1_0.txt
//
// See http://boostorg.github.com/compute for more information.
//---------------------------------------------------------------------------//
#ifndef BOOST_COMPUTE_FUNCTIONAL_MACROS_HPP
#define BOOST_COMPUTE_FUNCTIONAL_MACROS_HPP
#include
#include
#include
#define BOOST_COMPUTE_DECLARE_BUILTIN_FUNCTION(name, signature, template_args) \
template \
class name : public function \
{ \
public: \
(name)() : function(BOOST_PP_STRINGIZE(name)) { } \
};
#define BOOST_COMPUTE_DECLARE_BUILTIN_FUNCTION_UNDERSCORE(name, signature, template_args) \
template \
class BOOST_PP_CAT(name, _) : public function \
{ \
public: \
BOOST_PP_CAT(name, _)() : function(BOOST_PP_STRINGIZE(name)) { } \
};
#endif // BOOST_COMPUTE_FUNCTIONAL_MACROS_HPP