VirtualBox

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

最後變更 在這個檔案從36806是 17269,由 vboxsync 提交於 16 年 前

export to OSE

  • 屬性 svn:eol-style 設為 native
  • 屬性 svn:keywords 設為 Author Date Id Revision
檔案大小: 1.1 KB
 
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 */'
注意: 瀏覽 TracBrowser 來幫助您使用儲存庫瀏覽器

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