VirtualBox

source: vbox/trunk/src/VBox/GuestHost/OpenGL/state_tracker/state_funcs.py@ 76384

最後變更 在這個檔案從76384是 69392,由 vboxsync 提交於 7 年 前

GuestHost/OpenGL: scm updates

  • 屬性 svn:eol-style 設為 native
  • 屬性 svn:keywords 設為 Id Revision
檔案大小: 1.5 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
6
7from __future__ import print_function
8import sys
9
10sys.path.append( "../glapi_parser" )
11import apiutil
12
13
14apiutil.CopyrightC()
15
16print("""
17/* DO NOT EDIT - THIS FILE AUTOMATICALLY GENERATED BY state_funcs.py SCRIPT */
18#ifndef CR_STATE_FUNCS_H
19#define CR_STATE_FUNCS_H
20
21#include "chromium.h"
22#include "cr_error.h"
23
24#include <iprt/cdefs.h>
25
26#if defined(WINDOWS)
27#define STATE_APIENTRY __stdcall
28#else
29#define STATE_APIENTRY
30#endif
31
32#ifdef __cplusplus
33extern "C" {
34#endif
35
36#define STATE_UNUSED(x) ((void)x)""")
37
38
39
40for func_name in apiutil.AllSpecials( "state" ):
41 return_type = apiutil.ReturnType(func_name)
42 params = apiutil.Parameters(func_name)
43 print('DECLEXPORT(%s) STATE_APIENTRY crState%s(%s);' % (return_type, func_name, apiutil.MakeDeclarationString(params)))
44
45for func_name in apiutil.AllSpecials( "state_feedback" ):
46 return_type = apiutil.ReturnType(func_name)
47 params = apiutil.Parameters(func_name)
48 print('DECLEXPORT(%s) STATE_APIENTRY crStateFeedback%s(%s);' % (return_type, func_name, apiutil.MakeDeclarationString(params)))
49
50for func_name in apiutil.AllSpecials( "state_select" ):
51 return_type = apiutil.ReturnType(func_name)
52 params = apiutil.Parameters(func_name)
53 print('DECLEXPORT(%s) STATE_APIENTRY crStateSelect%s(%s);' % (return_type, func_name, apiutil.MakeDeclarationString(params)))
54
55
56print("""
57#ifdef __cplusplus
58}
59#endif
60
61#endif /* CR_STATE_FUNCS_H */
62""")
注意: 瀏覽 TracBrowser 來幫助您使用儲存庫瀏覽器

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