summaryrefslogtreecommitdiff
path: root/test/Subst/fixture/SConstruct.callable_exception
blob: 3f1b3379a8abbede1bd1b6f6447c2fa642b0ee4e (plain)
1
2
3
4
5
6
7
8
9
10
11
class TestCallable(object):
    def __init__(self, thing, makePathsRelative = True, debug = False):
        pass
    def __call__(self, target, source, env, for_signature):
       raise TypeError("User callable exception")

env = Environment()
env["TESTCLASS"] = TestCallable
env["CCCOM"] = "$CC $_CCCOMCOM $CCFLAGS -o ${TESTCLASS('$TARGET')} -c ${TESTCLASS('$SOURCES')}"

env.Program(target='test_main', source='test_main.c')