当前位置 : 主页 > 网络编程 > lua >

Learning English

来源:互联网 收集:自由互联 发布时间:2021-06-23
pushes onto sw. sth. eg. lua_pushcfunction(lua_State *L, lua_CFunction f); This function receives a pointer to a C function and pushes onto the stack a Lua value of type function that when called, invokes the corresponding C function. the h

pushes onto sw. sth.

eg. lua_pushcfunction(lua_State *L, lua_CFunction f); This function receives a pointer to a C function and pushes onto the stack a Lua value of type function that when called, invokes the corresponding C function.   the host program do the equivalent to  The following example shows how the host program can do the equivalent to this Lua code.   behaves like If there are no errors during the call, lua_pcall behaves exactly like lua_call.     unwound  by then Typically, the message handler is used to add more debug infomation to the error object, such as a stack traceback.Such infomation cannot  be gathered after the return of lua_pcall,since by then the stack has unwound.   lua_setfield(lua_State*l, int index, const char *k) This function pops the value from the stack.
网友评论