projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
fd5f1dd
)
glapi: gl_enums.py: use main() function for if __name__ == "__main__"
author
Dylan Baker
<baker.dylan.c@gmail.com>
Mon, 9 Feb 2015 22:19:23 +0000
(14:19 -0800)
committer
Matt Turner
<mattst88@gmail.com>
Fri, 22 May 2015 18:31:27 +0000
(11:31 -0700)
Signed-off-by: Dylan Baker <dylanx.c.baker@intel.com>
Acked-by: Matt Turner <mattst88@gmail.com>
src/mapi/glapi/gen/gl_enums.py
patch
|
blob
|
history
diff --git
a/src/mapi/glapi/gen/gl_enums.py
b/src/mapi/glapi/gen/gl_enums.py
index 927a68b3e053f5607de6813460c4eccf9d178296..955f27d08185f3f2e63634fe3d7e2227be989f92 100644
(file)
--- a/
src/mapi/glapi/gen/gl_enums.py
+++ b/
src/mapi/glapi/gen/gl_enums.py
@@
-211,9
+211,13
@@
def _parser():
return parser.parse_args()
-
if __name__ == '__main__'
:
+
def main()
:
args = _parser()
api_list = [gl_XML.parse_GL_API(args.input_file)]
printer = PrintGlEnums()
printer.Print(api_list)
+
+
+if __name__ == '__main__':
+ main()