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
相關文章
相關標籤/搜索