1 dnl Copyright 2002, The libsigc++ Development Team
3 dnl This library is free software; you can redistribute it and/or
4 dnl modify it under the terms of the GNU Lesser General Public
5 dnl License as published by the Free Software Foundation; either
6 dnl version 2.1 of the License, or (at your option) any later version.
8 dnl This library is distributed in the hope that it will be useful,
9 dnl but WITHOUT ANY WARRANTY; without even the implied warranty of
10 dnl MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
11 dnl Lesser General Public License for more details.
13 dnl You should have received a copy of the GNU Lesser General Public
14 dnl License along with this library; if not, write to the Free Software
15 dnl Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
17 define(__t_div__,divnum)divert(-1)
19 dnl M4 macros for building large files quickly
21 divert(0)// -*- c++ -*-
22 /* Do not edit! -- generated file */
28 dnl Macros for sigc specifically.
33 #Generate header guards:
34 define([_FIREWALL],[dnl
36 #define _SIGC_$1_H_[]dnl
38 #endif /* _SIGC_$1_H_ */
42 define([_R_],[type_trait_take_t<$1>])
43 define([_P_],[type_trait_pass_t<$1>])
45 define([__DEPRECATION_GUARD__],[SIGCXX_DISABLE_DEPRECATED])dnl
47 define([_DEPRECATE_IFDEF_START],[dnl
48 #ifndef __DEPRECATION_GUARD__])dnl
50 define([_DEPRECATE_IFDEF_END],[dnl
51 #endif // __DEPRECATION_GUARD__])dnl
60 [ifelse(eval($1<$2),0,
61 [indir([_LOOP_FORMAT], $1)],
62 [indir([_LOOP_FORMAT], $1)[]_LOOP_SEP[]_LOOP(eval($1+1), $2)])])
65 [pushdef([_LOOP_FORMAT], translit([$1],%, $))dnl
66 pushdef([_LOOP_SEP],ifelse([$3],[],[[[, ]]],[$3]))dnl
67 ifelse(eval($2>0),1,[PROT(_LOOP(1, $2))],[PROT()])dnl
68 popdef([_LOOP_SEP])dnl
69 popdef([_LOOP_FORMAT])dnl
72 define([NUM],[eval(ifelse([$1],,0,1)ifelse($#,0,0, $#,1,,[+NUM(shift($@))]))])
73 define([LIST],[ifelse($#,0,, $#,1,[$1],[$1],,[LIST(shift($@))],[__LIST($@)])])
74 define([__LIST],[ifelse($#,0,, $#,1,[$1],[$1[]ifelse([$2],,,[[, ]])__LIST(shift($@))])])
80 [pushdef([_FOR_FUNC],PROT(translit([$3],%, $)))dnl
82 popdef([_FOR_FUNC])dnl
84 define([_FOR],[ifelse(eval($1>$2),1,[],[_FOR_FUNC($1)[]_FOR(eval($1+1), $2)])])