Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
就像标题提到的那样,在将值存储到全局空间后,是否需要从堆栈中弹出值?
不,你不需要弹出它。请参阅文档lua_setglobal:
lua_setglobal
从堆栈中弹出一个值并将其设置为全局名称的新值。