int glWaitSync_bind(lua_State *L) { GLsync sync = luaL_checkinteger(L, 1); GLbitfield flags = luaL_checkinteger(L, 2); GLuint64 timeout = luaL_checkinteger(L, 3); glWaitSync(sync, flags, timeout); return 0; }