lua51lua_stateregister_func本页总览register_func 将 gs 函数注册到 lua 中 Ps: 注意有数量限制, 数量保持 200 以内会比较安全 声明 mixed register_func(function func, string name = nil, int argv = -1) 参数 参数名描述funcgs 函数name绑定到 lua 的函数, 默认和 gs 函数名相同argv参数数量, 默认读取 gs 函数数量, 可能会影响带默认参数 返回值 void 使用方式 返回文档