Ignore:
Timestamp:
10/25/10 08:57:04 (15 years ago)
Author:
Mathieu Morlighem
Message:

moved ISSMERROR to _error_, ISSMASSERT to _assert_ and ISSMPRINTF to _printf_

File:
1 edited

Legend:

Unmodified
Added
Removed
  • issm/trunk/src/c/shared/String/DescriptorIndex.cpp

    r5470 r6412  
    2323        /*retrieve first token, separated by underscore: */
    2424        pch = strtok (descriptor,"_");
    25         if(!pch)ISSMERROR("%s%s%s"," descriptor ",descriptor," is not correctly formatted!");
     25        if(!pch)_error_("%s%s%s"," descriptor ",descriptor," is not correctly formatted!");
    2626
    2727        if (strncmp(pch,"scaled",6)==0){
    2828                /*we have a scaled variable. recover the root: */
    2929                pch = strtok (NULL, "_");
    30                 if(!pch)ISSMERROR("%s%s%s"," scaled descriptor ",descriptor," is not correctly formatted!");
     30                if(!pch)_error_("%s%s%s"," scaled descriptor ",descriptor," is not correctly formatted!");
    3131                strcpy(root,pch);
    3232                /*now recover  the index if it exists: */
     
    4343                /*we have an indexed variable. recover the root: */
    4444                pch = strtok (NULL, "_");
    45                 if(!pch)ISSMERROR("%s%s%s"," indexed descriptor ",descriptor," is not correctly formatted!");
     45                if(!pch)_error_("%s%s%s"," indexed descriptor ",descriptor," is not correctly formatted!");
    4646                strcpy(root,pch);
    4747                /*now recover  the index: */
    4848                pch = strtok (NULL, "_");
    49                 if(!pch)ISSMERROR("%s%s%s"," indexed descriptor ",descriptor," is not correctly formatted!");
     49                if(!pch)_error_("%s%s%s"," indexed descriptor ",descriptor," is not correctly formatted!");
    5050                sscanf(pch,"%i",pindex);
    5151                return IndexedEnum;
     
    5454                /*we have an indexed variable. recover the root: */
    5555                pch = strtok (NULL, "_");
    56                 if(!pch)ISSMERROR("%s%s%s"," nodal descriptor ",descriptor," is not correctly formatted!");
     56                if(!pch)_error_("%s%s%s"," nodal descriptor ",descriptor," is not correctly formatted!");
    5757                strcpy(root,pch);
    5858                /*now recover  the index: */
    5959                pch = strtok (NULL, "_");
    60                 if(!pch)ISSMERROR("%s%s%s"," nodal descriptor ",descriptor," is not correctly formatted!");
     60                if(!pch)_error_("%s%s%s"," nodal descriptor ",descriptor," is not correctly formatted!");
    6161                sscanf(pch,"%i",pindex);
    6262                return NodalEnum;
Note: See TracChangeset for help on using the changeset viewer.