SConscript (10584:babb40bd2fc6) | SConscript (10685:a24286e33318) |
---|---|
1# -*- mode:python -*- 2 3# Copyright (c) 2004-2005 The Regents of The University of Michigan 4# All rights reserved. 5# 6# Redistribution and use in source and binary forms, with or without 7# modification, are permitted provided that the following conditions are 8# met: redistributions of source code must retain the above copyright --- 838 unchanged lines hidden (view full) --- 847 if not compound: 848 code('SimpleFlag $name("$name", "$desc");') 849 else: 850 comp_code('CompoundFlag $name("$name", "$desc",') 851 comp_code.indent() 852 last = len(compound) - 1 853 for i,flag in enumerate(compound): 854 if i != last: | 1# -*- mode:python -*- 2 3# Copyright (c) 2004-2005 The Regents of The University of Michigan 4# All rights reserved. 5# 6# Redistribution and use in source and binary forms, with or without 7# modification, are permitted provided that the following conditions are 8# met: redistributions of source code must retain the above copyright --- 838 unchanged lines hidden (view full) --- 847 if not compound: 848 code('SimpleFlag $name("$name", "$desc");') 849 else: 850 comp_code('CompoundFlag $name("$name", "$desc",') 851 comp_code.indent() 852 last = len(compound) - 1 853 for i,flag in enumerate(compound): 854 if i != last: |
855 comp_code('$flag,') | 855 comp_code('&$flag,') |
856 else: | 856 else: |
857 comp_code('$flag);') | 857 comp_code('&$flag);') |
858 comp_code.dedent() 859 860 code.append(comp_code) 861 code() 862 code('} // namespace Debug') 863 864 code.write(str(target[0])) 865 --- 413 unchanged lines hidden --- | 858 comp_code.dedent() 859 860 code.append(comp_code) 861 code() 862 code('} // namespace Debug') 863 864 code.write(str(target[0])) 865 --- 413 unchanged lines hidden --- |