2019-12-21 10:50:15 +00:00
|
|
|
//
|
|
|
|
// Created by 29019 on 2019/5/2.
|
|
|
|
//
|
|
|
|
|
|
|
|
#ifndef CUTILS_UTILS_H
|
|
|
|
#define CUTILS_UTILS_H
|
|
|
|
|
|
|
|
#include "utils.h"
|
|
|
|
#include <string>
|
|
|
|
#include "debug.h"
|
2020-01-04 17:28:43 +00:00
|
|
|
#include <sys/types.h>
|
|
|
|
#include <unistd.h>
|
2019-12-21 10:50:15 +00:00
|
|
|
|
2020-01-04 17:28:43 +00:00
|
|
|
using namespace std;
|
2019-12-21 10:50:15 +00:00
|
|
|
|
|
|
|
#define RELEASE_MEMORY(x) \
|
|
|
|
if(nullptr == x) \
|
|
|
|
{ \
|
|
|
|
delete(x); \
|
|
|
|
x = nullptr;\
|
|
|
|
}
|
|
|
|
string itos(int x);
|
|
|
|
|
|
|
|
#endif //CUTILS_UTILS_H
|