Sophie

Sophie

distrib > Fedora > 13 > x86_64 > media > updates > by-pkgid > 2cb8864ce5795b07e9b4918eb1189588 > files > 103

luabind-devel-0.9.1-1.fc13.x86_64.rpm

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**)
    ];