VirtualBox

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

Last change on this file since 71880 was 69474, checked in by vboxsync, 7 years ago

*: scm updates - header files should have 'svn:keywords=Id Revision' too (doesn't mean they have to use them).

  • Property svn:eol-style set to native
  • Property svn:keywords set to 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 */
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 */
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