def check_type(conf, type_name, headers=None):
    code = r"""
int main() {
  if ((%(name)s *) 0)
    return 0;
  if (sizeof (%(name)s))
    return 0;
}
""" % {'name': type_name}

    conf.start_message("Checking for type %s" % type_name)
    ret = conf.builders["ctasks"].try_compile("check_type", code,
                        headers)
    conf.conf_results.append({"type": "type", "value": type_name,
                              "result": ret})
    if ret:
        conf.end_message("yes")
    else:
        conf.end_message("no")
    return ret
dataset/ETHPy150Open cournape/Bento/bento/private/_yaku/yaku/conftests/conftests.py/check_type/original