Ignore:
Timestamp:
Mar 13, 2011, 1:22:45 AM (9 years ago)
Author:
sam
Message:

core: create a logger class to reduce printf usage.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/entity.cpp

    r686 r734  
    4343#if !LOL_RELEASE
    4444    if (!destroy)
    45         fprintf(stderr, "ERROR: entity destructor called directly\n");
     45        Log::Error("entity destructor called directly\n");
    4646#endif
    4747}
     
    5656#if !LOL_RELEASE
    5757    if (state != STATE_PRETICK_GAME)
    58         fprintf(stderr, "ERROR: invalid entity game tick\n");
     58        Log::Error("invalid entity game tick\n");
    5959    state = STATE_POSTTICK_GAME;
    6060#endif
     
    6565#if !LOL_RELEASE
    6666    if (state != STATE_PRETICK_DRAW)
    67         fprintf(stderr, "ERROR: invalid entity draw tick\n");
     67        Log::Error("invalid entity draw tick\n");
    6868    state = STATE_POSTTICK_DRAW;
    6969#endif
Note: See TracChangeset for help on using the changeset viewer.