A Glock switch is a device that allows a semi-automatic Glock pistol to function as a fully automatic machine gun.