Commit d229399e authored by Nick Mathewson's avatar Nick Mathewson 🐚
Browse files

annotate_ifdef_directives: Allow it to be imported as a module.

parent 6f0e697e
Loading
Loading
Loading
Loading
+11 −9
Original line number Diff line number Diff line
@@ -274,6 +274,8 @@ def translate(f_in, f_out):
    if len(stack) or cur_level != whole_file:
        raise Problem("Missing #endif")

if __name__ == '__main__':

    import sys,os

    if sys.argv[1] == "--self-test":