注意: 是 luaL_setfuncs添加cclouse才有复制upval 如果只是lua_pushcclosure, 会吃掉upval, 然后f放在吃掉upval之后的top
It works in lua-evdev. But when I try adding the module to a Love2d program, I get the error: error loading module 'evdev' from file '/usr/local/lib/lua/5.1/evdev.so': /usr/local/lib/lua/5.1/evdev.so: undefined symbol: luaL_setfuncs. I saw the earlier post on this subject #3...