Commit eebca79d authored by captainwong's avatar captainwong

fix grammer false

parent 0baf541c
......@@ -19,7 +19,7 @@ public:
};
#define LOG_FUNCTION(func_name) LogFunction _log_function_object(func_name);
#define LOG_FUNCTION_AUTO LOG_FUNCTION(__FUNCTION__)
#define AUTO_LOG_FUNCTION LOG_FUNCTION(__FUNCTION__)
#include "C:/Global/MyWSAError.h"
#include "c:/Global/observer_macro.h"
......@@ -31,7 +31,6 @@ private:\
classname(const classname&) {}\
classname& operator=(const classname&) {}
// singleton
#define DECLARE_SINGLETON(class_name) \
private: \
......@@ -64,11 +63,11 @@ public: \
val = param;\
}
#define DEALARE_GETTER_SETTER(type, val) \
#define DECLARE_GETTER_SETTER(type, val) \
DECLARE_GETTER(type, val) \
DECLARE_SETTER(type, val)
#define DEALARE_GETTER_SETTER_INT(val) \
#define DECLARE_GETTER_SETTER_INT(val) \
DECLARE_GETTER(int, val) \
DECLARE_SETTER(int, val)
......
......@@ -24,7 +24,7 @@ public: \
#define IMPLEMENT_OBSERVER(class_name) \
void class_name::RegisterObserver(void* udata, _callback cb) \
{ \
LOG_FUNCTION_AUTO; \
AUTO_LOG_FUNCTION; \
_lock4ObserverList.Lock(); \
_callbackInfo *observer = new _callbackInfo(udata, cb); \
_observerList.push_back(observer); \
......@@ -32,7 +32,7 @@ void class_name::RegisterObserver(void* udata, _callback cb) \
} \
void class_name::UnRegisterObserver(void* udata) \
{ \
LOG_FUNCTION_AUTO; \
AUTO_LOG_FUNCTION; \
_lock4ObserverList.Lock(); \
std::list<_callbackInfo *>::iterator iter = _observerList.begin(); \
while (iter != _observerList.end()) { \
......@@ -48,7 +48,7 @@ void class_name::UnRegisterObserver(void* udata) \
} \
void class_name::NotifyObservers(_param_type param) \
{ \
LOG_FUNCTION_AUTO; \
AUTO_LOG_FUNCTION; \
_lock4ObserverList.Lock(); \
std::list<_callbackInfo *>::iterator iter = _observerList.begin(); \
while (iter != _observerList.end()) { \
......@@ -62,6 +62,7 @@ void class_name::NotifyObservers(_param_type param) \
// place this macro in your class's destruct function.
#define DESTROY_OBSERVER \
{ \
AUTO_LOG_FUNCTION; \
std::list<_callbackInfo *>::iterator iter = _observerList.begin(); \
while (iter != _observerList.end()) { \
_callbackInfo * observer = *iter++; \
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment