20 #ifndef GNASH_UTILITY_H
21 #define GNASH_UTILITY_H
34 #if defined(__GNUC__) && __GNUC__ > 2
38 #if defined(_WIN32) || defined(WIN32)
45 #define assert(x) if (!(x)) { __asm { int 3 } }
54 #include <netinet/tcp.h>
55 #undef UNUSED //to avoid "already defined" messages
60 typedef std::basic_string<wchar_t> wstring;
64 #if defined(__HAIKU__)
66 class wstring :
public std::basic_string<char>
69 wstring(
const char *
t)
70 :
std::basic_string<char>(t)
76 wstring(
const wstring &that)
77 :
std::basic_string<char>(that.c_str())
80 wstring(
const std::basic_string<char> &that)
81 :
std::basic_string<char>(that)
96 #if defined(__GNUC__) && __GNUC__ > 2
98 char* typeNameUnmangled =
99 abi::__cxa_demangle (typeName.c_str(), NULL, NULL,
103 typeName = typeNameUnmangled;
104 std::free(typeNameUnmangled);
106 #endif // __GNUC__ > 2
113 #define UNUSED(x) static_cast<void>((x))
Anonymous namespace for callbacks, local functions, event handlers etc.
Definition: dbus_ext.cpp:40
Definition: GnashKey.h:166
Definition: GnashKey.h:132
std::string name
Definition: LocalConnection_as.cpp:151
std::string typeName(const T &inst)
Definition: utility.h:93