예제 #1
0
void
Config::DumpValues( std::initializer_list<Direct::String>  names,
                    Direct::String                        &out_str )
{
     D_DEBUG_AT( DirectFB_Graphics, "Graphics::Config::%s( %p )\n", __FUNCTION__, this );

     for (auto &name : names) {
          long value;

          if (GetOption( name, value ) == DFB_OK)
               out_str.PrintF( "%s%s:0x%lx", out_str.empty() ? "" : ",", *name, value );
     }
}
예제 #2
0
    const char *
    D_String_PrintTLS( const char *format, ... )
    {
        va_list        args;
        Direct::String str;

        D_ASSERT( format != NULL );

        va_start( args, format );
        str.PrintF( format, args );
        va_end( args );

        return str.CopyTLS();
    }