[sigc] bind.h.m4 CALL_SIZE dependency



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]