isolate cpp from c