From 48924567994c43e734f97a4b9150e87fa72b6c11 Mon Sep 17 00:00:00 2001 From: Dylan Baker Date: Wed, 11 Feb 2015 18:05:35 -0800 Subject: [PATCH] glapi: gl_x86_asm.py: use a main function Signed-off-by: Dylan Baker Acked-by: Matt Turner --- src/mapi/glapi/gen/gl_x86_asm.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/mapi/glapi/gen/gl_x86_asm.py b/src/mapi/glapi/gen/gl_x86_asm.py index 86d45f26046..c0c7941ce10 100644 --- a/src/mapi/glapi/gen/gl_x86_asm.py +++ b/src/mapi/glapi/gen/gl_x86_asm.py @@ -227,9 +227,13 @@ def _parser(): return parser.parse_args() -if __name__ == '__main__': +def main(): args = _parser() printer = PrintGenericStubs() api = gl_XML.parse_GL_API(args.filename, glX_XML.glx_item_factory()) printer.Print(api) + + +if __name__ == '__main__': + main() -- 2.30.2