3 # Boost.Function library
\r
5 # Copyright Douglas Gregor 2001-2003. Use, modification and
\r
6 # distribution is subject to the Boost Software License, Version
\r
7 # 1.0. (See accompanying file LICENSE_1_0.txt or copy at
\r
8 # http://www.boost.org/LICENSE_1_0.txt)
\r
10 # For more information, see http://www.boost.org
\r
14 print "Usage: perl gen_function_N <number of arguments>\n";
\r
19 $totalNumArgs = $ARGV[0];
\r
20 for ($numArgs = 0; $numArgs <= $totalNumArgs; ++$numArgs) {
\r
21 open OUT, ">function$numArgs.hpp";
\r
22 print OUT "#define BOOST_FUNCTION_NUM_ARGS $numArgs\n";
\r
23 print OUT "#include <boost/function/detail/maybe_include.hpp>\n";
\r
24 print OUT "#undef BOOST_FUNCTION_NUM_ARGS\n";
\r