No public offense can be compromised, nor can any proceeding or prosecution for the punishment thereof upon a compromise be stayed, except as provided in this Chapter.
(Enacted 1872.)