Lua调用C/C++

1.lua访问c中的栈变量 void lua_setglobal (lua_State *L, const char *name); 将虚拟栈中,将栈顶元素弹出,作为全局 lua 变量 name 的值。 Pops a value from the stack and sets it as the new value of global name。 //main.cpp #include <stdi
相关文章
相关标签/搜索