How can I effectively improve my English learning skills?
- 内容介绍
- 文章标签
- 相关推荐
本文共计181个文字,预计阅读时间需要1分钟。
该函数将C函数指针推入Lua堆栈。此函数接收一个指向C函数的指针,并在堆栈上推入一个Lua函数值。当调用此值时,将调用相应的C函数。
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.本文共计181个文字,预计阅读时间需要1分钟。
该函数将C函数指针推入Lua堆栈。此函数接收一个指向C函数的指针,并在堆栈上推入一个Lua函数值。当调用此值时,将调用相应的C函数。
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.
