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/engine/particle_engine.cc

    r361 r365  
    303303        if ( id == "" )
    304304        {
    305                 NV_LOG( LOG_ERROR, "Bad table passed to particle_engine!" )
     305                NV_LOG_ERROR( "Bad table passed to particle_engine!" )
    306306        }
    307307        // TODO : overwrite check
     
    325325        else
    326326        {
    327                 NV_LOG( LOG_ERROR, "Unknown orientation type! (" << orientation << ")!" );
     327                NV_LOG_ERROR( "Unknown orientation type! (", orientation, ")!" );
    328328                data.orientation = particle_orientation::POINT;
    329329        }
     
    341341        else
    342342        {
    343                 NV_LOG( LOG_ERROR, "Unknown particle origin! (" << origin << ")!" );
     343                NV_LOG_ERROR( "Unknown particle origin! (", origin, ")!" );
    344344                data.origin = particle_origin::CENTER;
    345345        }
     
    368368                                {
    369369                                        edata.emmiter_func = nv_particle_emmiter_point;
    370                                         NV_LOG( LOG_WARNING, "Unknown emmiter type in particle system! (" << sub_type << ")" );
     370                                        NV_LOG_WARNING( "Unknown emmiter type in particle system! (", sub_type, ")" );
    371371                                }
    372372
     
    417417                        else
    418418                        {
    419                                 NV_LOG( LOG_ERROR, "Too many emmiters (" << MAX_PARTICLE_EMMITERS << " is MAX)!" );
     419                                NV_LOG_ERROR( "Too many emmiters (", MAX_PARTICLE_EMMITERS, " is MAX)!" );
    420420                        }
    421421                }
     
    433433                                        {
    434434                                                data.affector_count--;
    435                                                 NV_LOG( LOG_WARNING, "Bad data passed to " << sub_type << " affector in particle system!" );
     435                                                NV_LOG_WARNING( "Bad data passed to ", sub_type, " affector in particle system!" );
    436436                                        }
    437437                                }
     
    439439                                {
    440440                                        data.affector_count--;
    441                                         NV_LOG( LOG_WARNING, "Unknown affector type in particle system! (" << sub_type << ")" );
     441                                        NV_LOG_WARNING( "Unknown affector type in particle system! (", sub_type, ")" );
    442442                                }
    443443                        }
    444444                        else
    445445                        {
    446                                 NV_LOG( LOG_ERROR, "Too many affectors (" << MAX_PARTICLE_AFFECTORS << " is MAX)!" );
     446                                NV_LOG_ERROR( "Too many affectors (", MAX_PARTICLE_AFFECTORS, " is MAX)!" );
    447447                        }
    448448                }
    449449                else
    450450                {
    451                         NV_LOG( LOG_WARNING, "Unknown element in particle system! (" << type << ")" );
     451                        NV_LOG_WARNING( "Unknown element in particle system! (", type, ")" );
    452452                }
    453453        }
Note: See TracChangeset for help on using the changeset viewer.