<commit_before>/*
 * This file is part of libFirm.
 * Copyright (C) 2012 University of Karlsruhe.
 */

/**
 * @file
 * @brief    Panic routine
 * @author   <NAME>
 */
#ifndef FIRM_COMMON_PANIC_H
#define FIRM_COMMON_PANIC_H

#include "funcattr.h"

/**
 * Prints a panic message to stderr and exits.
 */
FIRM_NORETURN print_panic(char const *file, int line, char const *func,
                          char const *fmt, ...);

#define panic(...) print_panic(__FILE__, __LINE__, __func__, __VA_ARGS__)

#define TODO(node) panic("%+F: TODO", node)

# endif<commit_msg>panic: Also print the name of the function in TODO.<commit_after>/*
 * This file is part of libFirm.
 * Copyright (C) 2012 University of Karlsruhe.
 */

/**
 * @file
 * @brief    Panic routine
 * @author   <NAME>
 */
#ifndef FIRM_COMMON_PANIC_H
#define FIRM_COMMON_PANIC_H

#include "funcattr.h"

/**
 * Prints a panic message to stderr and exits.
 */
FIRM_NORETURN print_panic(char const *file, int line, char const *func,
                          char const *fmt, ...);

#define panic(...) print_panic(__FILE__, __LINE__, __func__, __VA_ARGS__)

#define TODO(node) panic("%+F in function '%F': TODO", node, get_irn_irg(node))

# endif
{'fraction_non_alphanumeric': 0.13166666666666665, 'fraction_numerical': 0.006666666666666667, 'mean_word_length': 3.335740072202166, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '3662416', 'n_tokens_mistral': 431, 'n_tokens_neox': 418, 'n_words': 126}