Macromolecular compounds or prepolymers obtained otherwise than by reactions involving only carbon-to-carbon unsaturated bonds