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/ILL_DataReadWrite.ipf

    r573 r588  
    21432143// not really necessary 
    21442144// 
    2145 Function Write_RawData_File(type,fullpath,dialog) 
     2145Function/S Write_RawData_File(type,fullpath,dialog) 
    21462146        String type,fullpath 
    21472147        Variable dialog         //=1 will present dialog for name 
     
    21502150        Print "Write_RawData_File stub" 
    21512151         
    2152         return(0) 
    2153 End 
     2152        return(fullPath) 
     2153End 
Note: See TracChangeset for help on using the changeset viewer.