Memory.hpp
Go to the documentation of this file.
00001 // Copyright (c) 2013 by Wayne C. Gramlich.  All rights reserved.
00002 
00003 #if !defined(MEMORY_H_INCLUDED)
00004 #define MEMORY_H_INCLUDED 1
00005 
00020 
00021 #include "String.hpp"
00022 
00023 #define Memory__new(Type, from) \
00024   ((Type)Memory__allocate(sizeof(*((Type)0)), from))
00025 
00027 typedef void *Memory;
00028 
00029 // Extern declarations:
00030 
00031 #if defined(MEMORY_LEAK_CHECK)
00032     extern void Memory__leak_check(Memory memory);
00033     extern void Memory__leak_found(Memory memory);
00034 #endif // defined(MEMORY_LEAK_CHECK)
00035 
00036 extern Memory Memory__allocate(unsigned int bytes, String_Const from);
00037 extern void Memory__free(Memory memory);
00038 
00039 #endif // !defined(MEMORY_H_INCLUDED)
00040 


fiducial_lib
Author(s): Wayne Gramlich
autogenerated on Thu Jun 6 2019 18:08:04