am 2837f830: am 687c7e3e: am e8dc673c: Merge "Don\'t export unnecessary symbol."
* commit '2837f830685bfc52d1a843882bf6d04420213ed5': Don't export unnecessary symbol.
This commit is contained in:
commit
8358f7a992
@ -293,7 +293,7 @@ unsigned int gMallocDebugBacklog;
|
|||||||
int gMallocDebugLevel;
|
int gMallocDebugLevel;
|
||||||
|
|
||||||
template<typename FunctionType>
|
template<typename FunctionType>
|
||||||
void InitMallocFunction(void* malloc_impl_handler, FunctionType* func, const char* prefix, const char* suffix) {
|
static void InitMallocFunction(void* malloc_impl_handler, FunctionType* func, const char* prefix, const char* suffix) {
|
||||||
char symbol[128];
|
char symbol[128];
|
||||||
snprintf(symbol, sizeof(symbol), "%s_%s", prefix, suffix);
|
snprintf(symbol, sizeof(symbol), "%s_%s", prefix, suffix);
|
||||||
*func = reinterpret_cast<FunctionType>(dlsym(malloc_impl_handler, symbol));
|
*func = reinterpret_cast<FunctionType>(dlsym(malloc_impl_handler, symbol));
|
||||||
|
Loading…
x
Reference in New Issue
Block a user