VirtualBox

source: vbox/trunk/src/VBox/GuestHost/OpenGL/include/cr_mem.h@ 41019

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

crOpenGL: export to OSE

  • 屬性 svn:eol-style 設為 native
  • 屬性 svn:keywords 設為 Id
檔案大小: 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 */
6
7#ifndef CR_MEM_H
8#define CR_MEM_H
9
10#include <iprt/types.h>
11
12#ifdef __cplusplus
13extern "C" {
14#endif
15
16#define DEBUG_MEM 0
17
18void *crAllocDebug( unsigned int nbytes, const char *file, int line );
19void *crCallocDebug( unsigned int nbytes, const char *file, int line );
20#if DEBUG_MEM
21#define crAlloc(N) crAllocDebug(N, __FILE__, __LINE__)
22#define crCalloc(N) crCallocDebug(N, __FILE__, __LINE__)
23#else
24extern DECLEXPORT(void *) crAlloc( unsigned int nbytes );
25extern DECLEXPORT(void *) crCalloc( unsigned int nbytes );
26#endif
27extern DECLEXPORT(void) crRealloc( void **ptr, unsigned int bytes );
28extern DECLEXPORT(void) crFree( void *ptr );
29extern DECLEXPORT(void) crMemcpy( void *dst, const void *src, unsigned int bytes );
30extern DECLEXPORT(void) crMemset( void *ptr, int value, unsigned int bytes );
31extern DECLEXPORT(void) crMemZero( void *ptr, unsigned int bytes );
32extern DECLEXPORT(int) crMemcmp( const void *p1, const void *p2, unsigned int bytes );
33
34#ifdef __cplusplus
35}
36#endif
37
38#endif /* CR_MEM_H */
注意: 瀏覽 TracBrowser 來幫助您使用儲存庫瀏覽器

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