building again on mac with the switch

This commit is contained in:
Cass Everitt 2014-01-07 13:10:03 -06:00
parent a5b4223979
commit 400a5e55d7
5 changed files with 15 additions and 5 deletions

View file

@ -182,7 +182,12 @@ EmuInfo::init(const ContextInfo &contextInfo)
// Form Regal extension string from the set
extensions = ::print_detail::join(extensionsSet,string(" "));
extensions = "";
for( std::set<std::string>::iterator i = extensionsSet.begin(); i != extensionsSet.end(); ++i ) {
extensions += *i;
extensions += " ";
}
extensions.erase( extensions.rfind( " " ) );
Info("Regal vendor : ",vendor);
Info("Regal renderer : ",renderer);

View file

@ -108,7 +108,7 @@ void
Statistics::log(const char *name, const GLuint count)
{
if (count)
Info("Statistics ",left(name,30,' '),right(count,6,' '));
Info("Statistics ",print_left(name,30,' '),print_right(count,6,' '));
}
REGAL_NAMESPACE_END

View file

@ -184,7 +184,12 @@ EmuInfo::init(const ContextInfo &contextInfo)
// Form Regal extension string from the set
extensions = ::print_detail::join(extensionsSet,string(" "));
extensions = "";
for( std::set<std::string>::iterator i = extensionsSet.begin(); i != extensionsSet.end(); ++i ) {
extensions += *i;
extensions += " ";
}
extensions.erase( extensions.rfind( " " ) );
Info("Regal vendor : ",vendor);
Info("Regal renderer : ",renderer);

View file

@ -85,7 +85,7 @@ T print_hex( const T & t, const U & u ) {
#define print_array( ... ) std::string(" implement print_array() ")
#define print_optional( ... ) std::string(" implement print_optional() ")
#define print_raw( ... ) std::string( " implement print_raw() " )
#define print_trim( ... ) std::string( " implement trim() " )
#define print_trim( a, ... ) (a)
#define print_right( a, ... ) (a)
#define print_left( a, ... ) (a)

View file

@ -5105,7 +5105,7 @@ void
Statistics::log(const char *name, const GLuint count)
{
if (count)
Info("Statistics ",left(name,30,' '),right(count,6,' '));
Info("Statistics ",print_left(name,30,' '),print_right(count,6,' '));
}
REGAL_NAMESPACE_END