Epic failures in the game development field.

This blog covers funny/weird issues and bugs from games that happened during development.

Send your own contributions to igetyourfail at repi.se (can be anonymous if specified)

Tuesday, November 18, 2008

StringUtil.h



// Some shims

__forceinline bool isEmpty(const char* str) { return *str == 0; }
__forceinline bool isEmpty(const eastl::string& str) { return !str.empty(); }

__forceinline bool is_empty(const eastl::string& str) { return str.empty(); }


No comments:

Followers