从过去看,这段代码可以工作,然后突然函数将变量结果为空。number or a string results in nil.") end -- error if nil return n1
elseor not v2 or not v3 then error("Choosing a number or a string results in nil.") end --error if nil(Red,Yello
如果我有一个暴露在Lua上的C函数,我将一个userdata对象作为参数传递给lua,那么C函数可以在lua端将这个变量设置为'nil‘吗?// From C++
// the first param will be userdata and I want to setit so after this call