summaryrefslogtreecommitdiff
path: root/source/modules/asura-utils/Threads/binding/_coroutine.cpp
blob: 065607971eb15aa052f78bbf7a401f7ae482e4d3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
#include "../Coroutine.h"

using namespace std;

namespace_begin(AsuraEngine)
namespace_begin(Threads)
		
		LUAX_REGISTRY(Coroutine)
		{
			LUAX_REGISTER_METHODS(state,
				{ "New", _New },
				{ "Run", _Run }
			);
		}

		LUAX_POSTPROCESS(Coroutine)
		{

		}

		// Coroutine.New()
		LUAX_IMPL_METHOD(Coroutine, _New)
		{
			LUAX_STATE(L);

			return 0;
		}

		// coroutine:Run()
		LUAX_IMPL_METHOD(Coroutine, _Run)
		{
			LUAX_PREPARE(L, Coroutine);

			return 0;
		}

	}
}