Ignore:
Timestamp:
05/16/15 17:40:16 (10 years ago)
Author:
epyon
Message:
  • overhaul of logging: no longer stream operated no longer using STL no memory allocation shorthand macros fast file and console I/O
Location:
trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk

    • Property svn:global-ignores set to
      vs2012
      vs2013
      gmake
      gmake-clang
  • trunk/src/gl/gl_device.cc

    r364 r365  
    4141        if (!image)
    4242        {
    43                 NV_LOG( LOG_ERROR, "Image file " << filename << " not found!" );
     43                NV_LOG_ERROR( "Image file ", filename, " not found!" );
    4444                return nullptr;
    4545        }
     
    5959        if ( !image )
    6060        {
    61                 NV_LOG( LOG_ERROR, "Image binary data cannot be loaded found!" );
     61                NV_LOG_ERROR( "Image binary data cannot be loaded found!" );
    6262                return nullptr;
    6363        }
     
    228228                if ( fatal )
    229229                {
    230                         NV_LOG( LOG_ERROR, "Uniform '" << name << "' not found in program!" );
     230                        NV_LOG_ERROR( "Uniform '", name, "' not found in program!" );
    231231                        NV_THROW( runtime_error, ( "Uniform '"+name+"' not found!" ) );
    232232                }
     
    247247                if ( fatal )
    248248                {
    249                         NV_LOG( LOG_ERROR, "Attribute '" << name << "' not found in program!" );
    250                         NV_THROW( runtime_error, ( "Attribute '"+name+"' not found!" ) );
     249                        NV_LOG_ERROR( "Attribute '", name, "' not found in program!" );
     250                        NV_THROW( runtime_error, ( "Attribute '"+ name + "' not found!" ) );
    251251                }
    252252        }
     
    279279        glGetProgramInfoLog( p->glid, buffer_size, &length, buffer );
    280280
    281         NV_LOG( LOG_INFO, "Program #" << p->glid << (status == GL_FALSE ? " failed to compile!" : " compiled successfully.") );
     281        NV_LOG_INFO( "Program #", p->glid, (status == GL_FALSE ? " failed to compile!" : " compiled successfully.") );
    282282
    283283        if ( length > 0 )
    284284        {
    285                 NV_LOG( LOG_INFO, "Program #" << p->glid << " log: " << buffer );
     285                NV_LOG_INFO( "Program #", p->glid, " log: ", buffer );
    286286        }
    287287
     
    297297        {
    298298                glGetProgramInfoLog( p->glid, buffer_size, &length, buffer );
    299                 NV_LOG( LOG_ERROR, "Program #" << p->glid << " validation error : " << buffer );
     299                NV_LOG_ERROR( "Program #", p->glid, " validation error : ", buffer );
    300300                return false;
    301301        }
     
    418418                if ( compile_ok == 0 )
    419419                {
    420                         NV_LOG( LOG_ERROR, "Shader #" << glid << " error: " << buffer );
     420                        NV_LOG_ERROR( "Shader #", glid, " error: ", buffer );
    421421                }
    422422                else
    423423                {
    424                         NV_LOG( LOG_INFO, "Shader #" << glid << " compiled successfully: " << buffer );
     424                        NV_LOG_INFO( "Shader #", glid, " compiled successfully: ", buffer );
    425425                }
    426426        }
    427427        else
    428428        {
    429                 NV_LOG( LOG_INFO, "Shader #" << glid << " compiled successfully." );
     429                NV_LOG_INFO( "Shader #", glid, " compiled successfully." );
    430430        }
    431431        return compile_ok != 0;
Note: See TracChangeset for help on using the changeset viewer.