C func binding to Lua check