When 2 or more defendants shall be jointly indicted for any criminal offense, they shall be tried separately or jointly, in the discretion of the court.