From 6db5a815fef8c5372220cc223b1a8edcb99f3744 Mon Sep 17 00:00:00 2001 From: Mike Buland Date: Wed, 22 Jun 2011 23:53:38 +0000 Subject: Tweaked the signals, they're more adaptable now. --- gensigs.bld | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'gensigs.bld') diff --git a/gensigs.bld b/gensigs.bld index d973f91..d485a6e 100644 --- a/gensigs.bld +++ b/gensigs.bld @@ -13,8 +13,8 @@ function genSigs( outName ) " * terms of the license contained in the file LICENSE.\n" " */\n" "\n" - "#ifndef BU_OBJECT_SIGNALS_H\n" - "#define BU_OBJECT_SIGNALS_H\n" + "#ifndef BU_SIGNALS_H\n" + "#define BU_SIGNALS_H\n" "\n" "#include \"bu/util.h\"\n" "#include \"bu/exceptionbase.h\"\n" @@ -50,6 +50,8 @@ function genSigs( outName ) } } fOut.write( + "#ifndef BU_SIGNAL_PARAM_COUNT_${i}\n" + "#define BU_SIGNAL_PARAM_COUNT_${i}\n" " //\n" " // ${i} Parameter(s)\n" " //\n" @@ -154,6 +156,7 @@ function genSigs( outName ) " new __Slot${i}F<${templCallParams}>( pFnc )\n" " );\n" " }\n" + "#endif // BU_SIGNAL_PARAM_COUNT_${i}\n" "\n" ); } -- cgit v1.2.3