diff options
author | Dylan Baker <baker.dylan.c@gmail.com> | 2015-02-12 14:05:46 -0800 |
---|---|---|
committer | Matt Turner <mattst88@gmail.com> | 2015-05-22 11:31:28 -0700 |
commit | f2e78bd697e168c4f8cb1fd7f939713f8319eb78 (patch) | |
tree | e1a314618747986cc10c555d2bb4bb30bd67d54b /src/mapi/glapi | |
parent | 2e3da443f16e479997cdc5a2a137b9823f8617df (diff) | |
download | external_mesa3d-f2e78bd697e168c4f8cb1fd7f939713f8319eb78.zip external_mesa3d-f2e78bd697e168c4f8cb1fd7f939713f8319eb78.tar.gz external_mesa3d-f2e78bd697e168c4f8cb1fd7f939713f8319eb78.tar.bz2 |
glapi: gl_x86-64_asm.py: Use a main function
Signed-off-by: Dylan Baker <dylanx.c.baker@intel.com>
Acked-by: Matt Turner <mattst88@gmail.com>
Diffstat (limited to 'src/mapi/glapi')
-rw-r--r-- | src/mapi/glapi/gen/gl_x86-64_asm.py | 7 |
1 files changed, 6 insertions, 1 deletions
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() |