TurtleBrains  0.3.1
High quality, portable, C++ framework for rapid 2D game development.
String Conversion Macros


#define tb_string(object)   TurtleBrains::Core::ToString((object))

Detailed Description

Macro Definition Documentation

#define tb_string (   object)    TurtleBrains::Core::ToString((object))

An easy way to make sure that a string is processed correctly is to just call tb_string on all strings passed to TurtleBrains so that both ascii and wide string arrays will convert into the correct std::string or std::wstring type depending on the tb_with_wide_string setting in tb_configuration.h