raw.rst.svn-base

来自「本人找过多个在linux下c++的lua5.1封装库,但很少.luabind已经」· SVN-BASE 代码 · 共 55 行

SVN-BASE
55
字号
raw---Motivation~~~~~~~~~~This converter policy will pass through the ``lua_State*`` unmodified.This can be useful for example when binding functions that need to return a ``luabind::object``. The parameter will be removed from thefunction signature, decreasing the function arity by one.Defined in~~~~~~~~~~.. parsed-literal::    #include <luabind/raw_policy.hpp>Synopsis~~~~~~~~.. parsed-literal::    raw(index)Parameters~~~~~~~~~~============= ===============================================================Parameter     Purpose============= ===============================================================``index``     The index of the lua_State* parameter.============= ===============================================================Example~~~~~~~.. parsed-literal::    void greet(lua_State* L)    {        lua_pushstring(L, "hello");    }    ...    module(L)    [        def("greet", &greet, **raw(_1)**)    ];    > print(greet())    hello

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?