From 1a93316b3852e72c999331172e293083bb059fdb Mon Sep 17 00:00:00 2001 From: aozhiwei Date: Sat, 27 May 2023 16:53:09 +0800 Subject: [PATCH] 1 --- f8/comgr.cc | 4 ++++ f8/comgr.h | 4 ++++ f8/coroutine.cc | 7 ++++--- f8/coroutine.h | 4 ++++ 4 files changed, 16 insertions(+), 3 deletions(-) diff --git a/f8/comgr.cc b/f8/comgr.cc index 3c53a05..0ff5e68 100644 --- a/f8/comgr.cc +++ b/f8/comgr.cc @@ -4,6 +4,8 @@ #include #include +#ifdef USE_BOOST + namespace f8 { @@ -36,3 +38,5 @@ namespace f8 } } + +#endif diff --git a/f8/comgr.h b/f8/comgr.h index 45d89e0..4dc7956 100644 --- a/f8/comgr.h +++ b/f8/comgr.h @@ -2,6 +2,8 @@ #include +#ifdef USE_BOOST + namespace f8 { class Coroutine; @@ -28,3 +30,5 @@ namespace f8 }; } + +#endif diff --git a/f8/coroutine.cc b/f8/coroutine.cc index 5572b91..1c8796d 100644 --- a/f8/coroutine.cc +++ b/f8/coroutine.cc @@ -7,6 +7,8 @@ #include #include +#ifdef USE_BOOST + class TimerPromise : public a8::Promise { public: @@ -56,9 +58,6 @@ namespace f8 Coroutine::~Coroutine() { -#ifdef DEBUG - a8::XPrintf("Coroutine::~Coroutine()\n", {}); -#endif Deatch(); list_del_init(&co_entry_); } @@ -132,3 +131,5 @@ namespace f8 } } + +#endif diff --git a/f8/coroutine.h b/f8/coroutine.h index 3c5c00f..97f345b 100644 --- a/f8/coroutine.h +++ b/f8/coroutine.h @@ -2,6 +2,8 @@ #include +#ifdef USE_BOOST + #include namespace f8 @@ -42,3 +44,5 @@ namespace f8 }; } + +#endif