a8/a8/a8.h
aozhiwei 9f43c10312 1
2021-03-08 15:18:00 +08:00

39 lines
725 B
C++

#ifndef A8_H
#define A8_H
#include <assert.h>
#include <string>
#include <vector>
#include <map>
#include <list>
#include <set>
#include <tuple>
#include <memory>
#include <functional>
#include <initializer_list>
#include <a8/types.h>
#include <a8/list.h>
#include <a8/xvalue.h>
#include <a8/xobject.h>
#include <a8/xparams.h>
#include <a8/timer_attacher.h>
#include <a8/strutils.h>
#include <a8/sysutils.h>
#include <a8/singleton.h>
namespace std
{
class thread;
class mutex;
class condition_variable;
};
#define NEW_NET
#define A8_SAFE_DELETE(p) { if(p){delete(p); (p)=nullptr;} }
#define A8_DEFINE_RANGE_BIT(type, begin, end) ((((type)1) << (end + 1)) - 1) & (~((((type)1) << (begin + 0)) - 1))
#endif