Add script: convert c defines to func