Changeset 752


Ignore:
Timestamp:
10/21/15 13:40:58 (8 years ago)
Author:
rlacroix
Message:

Fix the error message when referencing an unknown object.

Macro stringifications were used incorrectly.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • XIOS/trunk/src/declare_ref_func.hpp

    r751 r752  
    8888                                                                       \ 
    8989  if (!C##type::has(this->name##_ref))                                 \ 
    90     ERROR("C##type::getDirect##type##Reference(void)",                \ 
    91           << "[ ref_name = " << this->name##_ref.getValue() << "]"     \ 
    92           << " invalid #name name !");                                 \ 
     90    ERROR("C" #type "* C" #type "::getDirect" #type "Reference(void)", \ 
     91          << this->name##_ref                                          \ 
     92          << " refers to an unknown " #name " id.");                   \ 
    9393                                                                       \ 
    9494  return C##type::get(this->name##_ref);                               \ 
Note: See TracChangeset for help on using the changeset viewer.