Changed code generator so that inline functions can always be used