git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@7026 c06c8d41-db1a-0410-9941-cceddc491573
OTVV3WLW7UIR47HFM3FESZRTDFGF25JGSQGESSGGVWC3FEFXI37AC // Do not use this templated function directly. Use the macro below instead.template<int> int cancelable_get_line_autohist_temp(char *buf, int len){static input_history hist(10);return cancelable_get_line(buf, len, get_number_of_cols(), &hist);}// This version of cancelable_get_line will automatically retain its own// input history, independent of other calls to cancelable_get_line.#define cancelable_get_line_autohist(buf, len) \cancelable_get_line_autohist_temp<__LINE__>(buf, len)
// Do not use this templated function directly. Use the macro below instead.template<int> static int cancelable_get_line_autohist_temp(char *buf, int len){static input_history hist(10);return cancelable_get_line(buf, len, get_number_of_cols(), &hist);}// This version of cancelable_get_line will automatically retain its own// input history, independent of other calls to cancelable_get_line.#define cancelable_get_line_autohist(buf, len) \cancelable_get_line_autohist_temp<__LINE__>(buf, len)