generator: move nothrow to write_prototype_pre