mirror of
https://github.com/fish-shell/fish-shell
synced 2024-12-26 04:43:10 +00:00
Fix #2919 by removing the entire block.
This code represents only risk and does nothing useful for anything that can compile fish. In C++ situations where __STDC_VERSION__ is unset (as it should be), fish was assuming we are on < C99 and setting it to __FUNCTION__. Basically always, __PRETTY_FUNCTION__ ends up reaplaced by __FUNCTION__, this hurt error message usefulness and richness. __PRETTY_FUNCTION__: const thing::sub(int) __FUNCTION__: sub
This commit is contained in:
parent
2d5eaed745
commit
574851f092
1 changed files with 0 additions and 13 deletions
|
@ -23,19 +23,6 @@ int fish_wcswidth(const wchar_t *str, size_t n);
|
||||||
#define WCHAR_MAX INT_MAX
|
#define WCHAR_MAX INT_MAX
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
/**
|
|
||||||
Make sure __func__ is defined to some string. In C99, this should
|
|
||||||
be the currently compiled function. If we aren't using C99 or
|
|
||||||
later, older versions of GCC had __FUNCTION__.
|
|
||||||
*/
|
|
||||||
#if __STDC_VERSION__ < 199901L
|
|
||||||
# if __GNUC__ >= 2
|
|
||||||
# define __func__ __FUNCTION__
|
|
||||||
# else
|
|
||||||
# define __func__ "<unknown>"
|
|
||||||
# endif
|
|
||||||
#endif
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
Under curses, tputs expects an int (*func)(char) as its last
|
Under curses, tputs expects an int (*func)(char) as its last
|
||||||
parameter, but in ncurses, tputs expects a int (*func)(int) as its
|
parameter, but in ncurses, tputs expects a int (*func)(int) as its
|
||||||
|
|
Loading…
Reference in a new issue