[Mesa-dev] [PATCH 16/27] glapi: gl_x86-64_asm.py: Use a main function
Dylan Baker
baker.dylan.c at gmail.com
Wed May 20 18:03:13 PDT 2015
Signed-off-by: Dylan Baker <dylanx.c.baker at intel.com>
---
src/mapi/glapi/gen/gl_x86-64_asm.py | 7 ++++++-
1 file changed, 6 insertions(+), 1 deletion(-)
diff --git a/src/mapi/glapi/gen/gl_x86-64_asm.py b/src/mapi/glapi/gen/gl_x86-64_asm.py
index 0188964..cf42371 100644
--- a/src/mapi/glapi/gen/gl_x86-64_asm.py
+++ b/src/mapi/glapi/gen/gl_x86-64_asm.py
@@ -302,9 +302,14 @@ def _parser():
return parser.parse_args()
-if __name__ == '__main__':
+def main():
+ """Main file."""
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.4.1
More information about the mesa-dev
mailing list