add global defines to gentable