| 123456789101112131415161718192021222324252627282930313233343536373839 |
- yield
- ----------------
- Motivation
- ~~~~~~~~~~
- Makes a C++ function yield when returning.
- Defined in
- ~~~~~~~~~~
- .. parsed-literal::
- #include <luabind/yield_policy.hpp>
- Synopsis
- ~~~~~~~~
- .. parsed-literal::
- yield
- Example
- ~~~~~~~
- .. parsed-literal::
- void do_thing_that_takes_time()
- {
- ...
- }
- ...
- module(L)
- [
- def("do_thing_that_takes_time", &do_thing_that_takes_time, **yield**)
- ];
|