29-2012. Joint defendants; discharge of one or more; when authorized; effect.

When two or more persons shall be indicted together, the court may, at any time before the defendant has gone into his defense, direct any one of the defendants to be discharged that he may be a witness for the state. An accused may, also, when there is not sufficient evidence to put him upon his defense, be discharged by the court; or, if not discharged by the court, shall be entitled to the immediate verdict of the jury, for the purpose of giving evidence for others accused with him. Such order of discharge in either case shall be a bar to another prosecution for the same offense.

Source:G.S.1873, c. 58, § 474, p. 827; R.S.1913, § 9115; C.S.1922, § 10140; C.S.1929, § 29-2012; R.S.1943, § 29-2012.