Generate C #defines from objects