Commit 0350744a authored by dickelbeck's avatar dickelbeck

add GetChars()

parent 3339f54f
......@@ -14,6 +14,22 @@
#endif
/**
* Function GetChars
* returns a pointer to the actual character data, either 8 or
* 16 bits wide, depending on how the wxWidgets library was compiled.
* Pointer
*/
const wxChar* GetChars( wxString s )
{
#if wxCHECK_VERSION(2,9,0)
return (const wxChar*) s.wx_str();
#else
return s.GetData();
#endif
}
#ifndef MIN
#define MIN( x, y ) ( (x) > (y) ? (y) : (x) )
#endif
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment