code: def filename(out_dir, name, undefine=False):
      
      if undefine:
          prefix = 'undef_'
      else:
          prefix = ''
      return os.path.join(out_dir, '{0}{1}.hpp'.format(prefix, name.lower()))
docs: Generate the filename