Fixed placeholder compatibility with Boost 1.34.
[luabind.git] / doc / raw.rst
blob085f0e5ee2b0820b793768a9a04042dceae3b74d
1 raw
2 ---
4 Motivation
5 ~~~~~~~~~~
7 This converter policy will pass through the ``lua_State*`` unmodified.
8 This can be useful for example when binding functions that need to 
9 return a ``luabind::object``. The parameter will be removed from the
10 function signature, decreasing the function arity by one.
12 Defined in
13 ~~~~~~~~~~
15 .. parsed-literal::
17     #include <luabind/raw_policy.hpp>
19 Synopsis
20 ~~~~~~~~
22 .. parsed-literal::
24     raw(index)
26 Parameters
27 ~~~~~~~~~~
29 ============= ===============================================================
30 Parameter     Purpose
31 ============= ===============================================================
32 ``index``     The index of the lua_State* parameter.
33 ============= ===============================================================
35 Example
36 ~~~~~~~
38 .. parsed-literal::
40     void greet(lua_State* L)
41     {
42         lua_pushstring(L, "hello");
43     }
45     ...
47     module(L)
48     [
49         def("greet", &greet, **raw(_1)**)
50     ];
52     > print(greet())
53     hello