Changeset 294 in flair-src for trunk/lib/FlairCore/src/Object.cpp


Ignore:
Timestamp:
Jan 9, 2019, 3:38:32 PM (3 years ago)
Author:
Sanahuja Guillaume
Message:

vrpn modifs

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/lib/FlairCore/src/Object.cpp

    r15 r294  
    9191  if (rt_task_self() != NULL) {
    9292    rt_fprintf(stderr, "\033[%dm", color);
    93     if (line) {
    94       rt_fprintf(stderr, "%s - line %d, %s: ", function, line,
    95                  pimpl_->name.c_str());
    96     } else {
    97       rt_fprintf(stderr, "%s, %s: ", function, pimpl_->name.c_str());
     93    if(function) {
     94      if (line) {
     95        rt_fprintf(stderr, "%s - line %d, %s: ", function, line,
     96                   pimpl_->name.c_str());
     97      } else {
     98        rt_fprintf(stderr, "%s, %s: ", function, pimpl_->name.c_str());
     99      }
    98100    }
    99101    rt_vfprintf(stderr, format, *args);
     
    103105  {
    104106    fprintf(stderr, "\033[%dm", color);
    105     if (line) {
    106       fprintf(stderr, "%s - line %d, %s: ", function, line,
    107               pimpl_->name.c_str());
    108     } else {
    109       fprintf(stderr, "%s, %s: ", function, pimpl_->name.c_str());
     107    if(function) {
     108      if (line) {
     109        fprintf(stderr, "%s - line %d, %s: ", function, line,
     110                pimpl_->name.c_str());
     111      } else {
     112        fprintf(stderr, "%s, %s: ", function, pimpl_->name.c_str());
     113      }
    110114    }
    111115    vfprintf(stderr, format, *args);
Note: See TracChangeset for help on using the changeset viewer.