Generate C definitions from objects