Ignore:
Timestamp:
Nov 2, 2009 10:55:37 AM (13 years ago)
Author:
srkline
Message:

Added conditional compile instructions to some reduction procedure files that have only minor facility-specific changes. These changes are not significant enough to merit a separate facility file that must be maintained with essentially duplicate functions.

#define SYMBOL was attempted, but did not work since the symbols weren't actually defined until after the compile... and I couldn't figure out how to define - then compile. in additon, the table is static until Igor is quit - so multiple symbols could be defined, and compiling would fail.

So... the method now that appears to work is to put a dummy function for each facility in its facility specific "Includes" file. Then the conditional compilation checks for exists("function").

File:
1 edited

Legend:

Unmodified
Added
Removed
  • sans/Dev/trunk/NCNR_User_Procedures/Reduction/SANS/ProDiv.ipf

    r575 r588  
    7676        endif 
    7777 
    78 #ifdef QUOKKA    
     78#if (exists("QUOKKA")==6) 
    7979        //corrects edge rows and columns by copy data from adjacent column 
    8080        DoAlert 1,"Do edge correction for Quokka detector?" 
     
    376376                        ConvertFolderToLinearScale("COR") 
    377377                         
    378 #ifdef QUOKKA    
     378#if (exists("QUOKKA")==6) 
    379379                        //corrects edge rows and columns by copy data from adjacent column 
     380                        String ctrType="STO",offType="COR" 
    380381                        DoAlert 1,"Do edge correction for Quokka detector?" 
    381382                        if(V_flag==1) 
Note: See TracChangeset for help on using the changeset viewer.