Added a C++ like const_cast macro.

This commit is contained in:
Roland Illig 2004-08-16 15:42:48 +00:00
parent a0616a76be
commit 5d44086ccc

View File

@ -187,4 +187,7 @@ void refresh_screen (void *);
#define ESC_CHAR '\033'
#define ESC_STR "\033"
/* C++ style type casts */
#define const_cast(m_type, m_expr) ((m_type) (m_expr))
#endif /* !__MC_GLOBAL_H */