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

    r575 r588  
    1010// nha. Edited for Quokka. 5/2/09 
    1111// 
    12 // these procedure files are those used in version 5.0 of the  
    13 // SANS Reduction macros, August 2006 
    1412 
    15 #define QUOKKA 
     13 
     14// to properly set up the template for QUOKKA Data Reduction, the dummy 
     15// function must exist in the Includes file. 
     16// 
     17Function QUOKKA() 
     18        //does nothing but declare QUOKKA 
     19        return(0) 
     20End 
     21 
    1622 
    1723 
Note: See TracChangeset for help on using the changeset viewer.