blob: c3f4401ea117f193b78f47ea7bd6e8ee6099baea [file] [log] [blame]
Jeff Thompsonef2d5a42013-08-22 19:09:24 -07001#!/usr/bin/perl -w
2#
3# Boost.Function library
4#
5# Copyright Douglas Gregor 2001-2003. Use, modification and
6# distribution is subject to the Boost Software License, Version
7# 1.0. (See accompanying file LICENSE_1_0.txt or copy at
8# http://www.boost.org/LICENSE_1_0.txt)
9#
10# For more information, see http://www.boost.org
11use English;
12
13if ($#ARGV < 0) {
14 print "Usage: perl gen_function_N <number of arguments>\n";
15 exit;
16}
17
18
19$totalNumArgs = $ARGV[0];
20for ($numArgs = 0; $numArgs <= $totalNumArgs; ++$numArgs) {
21 open OUT, ">function$numArgs.hpp";
Jeff Thompson3d613fd2013-10-15 15:39:04 -070022 print OUT "#define NDNBOOST_FUNCTION_NUM_ARGS $numArgs\n";
Jeff Thompsonef2d5a42013-08-22 19:09:24 -070023 print OUT "#include <ndnboost/function/detail/maybe_include.hpp>\n";
Jeff Thompson3d613fd2013-10-15 15:39:04 -070024 print OUT "#undef NDNBOOST_FUNCTION_NUM_ARGS\n";
Jeff Thompsonef2d5a42013-08-22 19:09:24 -070025 close OUT;
26}