[sigc] bind.h.m4 CALL_SIZE dependency
- From: "dasjotre (sent by Nabble.com)" <lists nabble com>
- To: libsigc-list gnome org
- Subject: [sigc] bind.h.m4 CALL_SIZE dependency
- Date: Tue, 18 Oct 2005 04:23:39 -0700 (PDT)
hi,
struct count_void definition in bind.h.m4 does not use CALL_SIZE
I don't have much experience in m4 by this works:
define([deffone],
[
// $1 specialization
template< ifelse( eval($1), eval(CALL_SIZE), [], LOOP( [class T_arg%1], eval(CALL_SIZE-$1))) >
struct count_void ifelse( eval($1), eval(0), [ ], [ifelse( eval($1), eval(CALL_SIZE), [< LOOP([void], eval($1)) >], [< LOOP([T_arg%1], eval(CALL_SIZE-$1)), LOOP([void], eval($1)) >])])
{
enum { value = $1 };
};
])
define([def_all_impl], [ifelse(eval($1), eval(CALL_SIZE+1), [], [deffone($1) def_all_impl(eval($1+1))])])
define([def_all], [def_all_impl([0])])
def_all()
VVS
Sent from the
Gnome - Libsigc forum at Nabble.com.
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]