VirtualBox

source: vbox/trunk/src/VBox/Additions/common/crOpenGL/feedback/feedback_funcs.py@ 20509

Last change on this file since 20509 was 17269, checked in by vboxsync, 16 years ago

export to OSE

  • Property svn:eol-style set to native
  • Property svn:keywords set to Author Date Id Revision
File size: 1.1 KB
Line 
1# Copyright (c) 2001, Stanford University
2# All rights reserved.
3#
4# See the file LICENSE.txt for information on redistributing this software.
5
6import sys
7
8import apiutil
9
10
11apiutil.CopyrightC()
12
13print """
14/* DO NOT EDIT - THIS FILE AUTOMATICALLY GENERATED BY feedback_funcs.py SCRIPT */
15#ifndef CR_STATE_FEEDBACK_FUNCS_H
16#define CR_STATE_FEEDBACK_FUNCS_H
17
18#include "cr_error.h"
19
20#if defined(WINDOWS)
21#define STATE_APIENTRY __stdcall
22#else
23#define STATE_APIENTRY
24#endif
25
26#define STATE_UNUSED(x) ((void)x)"""
27
28keys = apiutil.GetDispatchedFunctions(sys.argv[1]+"/APIspec.txt")
29
30for func_name in apiutil.AllSpecials( "feedback" ):
31 return_type = apiutil.ReturnType(func_name)
32 params = apiutil.Parameters(func_name)
33 print '%s STATE_APIENTRY crStateFeedback%s( %s );' % (return_type, func_name, apiutil.MakeDeclarationString(params))
34
35for func_name in apiutil.AllSpecials( "select" ):
36 return_type = apiutil.ReturnType(func_name)
37 params = apiutil.Parameters(func_name)
38 print '%s STATE_APIENTRY crStateSelect%s( %s );' % (return_type, func_name, apiutil.MakeDeclarationString(params))
39print '\n#endif /* CR_STATE_FEEDBACK_FUNCS_H */'
Note: See TracBrowser for help on using the repository browser.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette