CATCH
Main Page
Classes
Files
File List
All
Classes
Functions
Catch
shared
memalloc.h
1
#pragma once
2
#include <cstdlib>
3
#include <Rpc.h>
4
5
// Memory allocation function for RPC.
6
// The runtime uses these two functions for allocating/deallocating
7
// enough memory to pass the string to the server.
8
void
__RPC_FAR * __RPC_USER midl_user_allocate(
size_t
cBytes)
9
{
10
return
((
void
__RPC_FAR *) malloc(cBytes));
11
}
12
13
// Memory deallocation function for RPC.
14
void
__RPC_USER midl_user_free(
void
* p)
15
{
16
free(p);
17
}
Generated on Sun Apr 27 2014 23:46:54 for CATCH by
1.8.6