summaryrefslogtreecommitdiff
path: root/source/modules/asura-utils/threading/coroutine.h
diff options
context:
space:
mode:
Diffstat (limited to 'source/modules/asura-utils/threading/coroutine.h')
-rw-r--r--source/modules/asura-utils/threading/coroutine.h44
1 files changed, 22 insertions, 22 deletions
diff --git a/source/modules/asura-utils/threading/coroutine.h b/source/modules/asura-utils/threading/coroutine.h
index bd0f922..830dcd2 100644
--- a/source/modules/asura-utils/threading/coroutine.h
+++ b/source/modules/asura-utils/threading/coroutine.h
@@ -1,39 +1,39 @@
#ifndef __ASURA_COROUTINE_H__
#define __ASURA_COROUTINE_H__
+#include <asura-utils/classes.h>
+
#include "../scripting/portable.hpp"
-namespace AsuraEngine
-{
- namespace Threading
- {
+namespace_begin(AsuraEngine)
+namespace_begin(Threading)
- ///
- /// luaЭ̣һЩ߼
- ///
- class Coroutine ASURA_FINAL
- : public AEScripting::Portable<Coroutine>
- {
- public:
+///
+/// luaЭ̣һЩ߼
+///
+class Coroutine ASURA_FINAL
+ : public AEScripting::Portable<Coroutine>
+{
+public:
- LUAX_DECL_FACTORY(Coroutine);
+ LUAX_DECL_FACTORY(Coroutine);
- private:
+private:
- ///
- /// ǰЭ̵state
- ///
- lua_State* m_ThreadState;
+ ///
+ /// ǰЭ̵state
+ ///
+ lua_State* m_ThreadState;
- LUAX_DECL_METHOD(_New);
- LUAX_DECL_METHOD(_Run);
+ LUAX_DECL_METHOD(_New);
+ LUAX_DECL_METHOD(_Run);
- };
+};
- }
-}
+namespace_end
+namespace_end
namespace AEThreading = AsuraEngine::Threading;