⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 malloc_util.h

📁 agentspark 机器人模拟代码 适用robocup 机器人步态模拟仿真(机器人动作在NAOGETUP.cpp下修改)
💻 H
字号:
/**
 * malloc_util.h : malloc debugging routines
 * 
 * written by erik a. hendriks (hendriks@lanl.gov).
 *
 * Copyright 2002 Erik Arjan Hendriks.
 * This software may be used and distributed according to the terms of the 
 * GNU Public License, incorporated herein by reference. 
 */

#ifndef _MALLOC_UTIL_H_
#define _MALLOC_UTIL_H_

#include <sys/types.h>

/*-- Memory debugging stuff --*/
void  x_init_alloc(void);

void  x_check_point_count(void);
void  x_inc_check_point(void);

void *x_malloc(char *, int, size_t);
void  x_free  (char *, int, void *);
char *x_strdup(char *, int, char *);

#ifdef _DEBUG_MALLOCS_
#define malloc(x) x_malloc(__FILE__, __LINE__, (x))
#define safe_malloc(x) x_malloc(__FILE__, __LINE__, (x))
#define free(x)   x_free  (__FILE__, __LINE__, (x))
#define strdup(x) x_strdup(__FILE__, __LINE__, (x))
#endif

#endif

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -