Removed worthless gettable/settable metamethods.
[luabind.git] / doc / yield.rst
blob3f1878258104460d01fd2891362867fb97e24b91
1 yield
2 ----------------
4 Motivation
5 ~~~~~~~~~~
7 Makes a C++ function yield when returning.
9 Defined in
10 ~~~~~~~~~~
12 .. parsed-literal::
14     #include <luabind/yield_policy.hpp>
16 Synopsis
17 ~~~~~~~~
19 .. parsed-literal::
21     yield
23 Example
24 ~~~~~~~
26 .. parsed-literal::
28     void do_thing_that_takes_time()
29     {
30         ...
31     }
33     ...
35     module(L)
36     [
37         def("do_thing_that_takes_time", &do_thing_that_takes_time, **yield**)
38     ];