source: specdomain/trunk/src/specdomain/macros/cdef-examples.mac @ 982

Last change on this file since 982 was 982, checked in by jemian, 10 years ago

also match cdef() embedded within an if(){} block, as in standard.mac

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 1.7 KB
Line 
1"""
2.. $Id: cdef-examples.mac 982 2012-06-27 19:33:01Z jemian $
3
4Examples of SPEC cdef macros
5==============================
6
7These examples of SPEC cdef macros were extracted from the
8SPECD ``*.mac`` files.
9The items were obtained via grep, and then cleaned up in an
10editor, then sorted, with redundancies removed.
11"""
12
13cdef("cleanup_once", "", "ct", "delete")
14cdef("cleanup_once", "", "dscan", "delete")
15cdef("cleanup_once", "onp; show_cnts; offp; user_ct", "ct")
16cdef("cleanup_once", "powder_cleanup;", "powder_setup")
17cdef("cleanup_once", "", "powder_setup", "delete")
18cdef("cleanup_once", "_scanabort;", "scan_cleanup")
19cdef("cleanup_once", "", "scan_cleanup", "delete")
20cdef("cleanup_once", sprintf("dscan_cleanup $1 %s;", _c1), "dscan")
21cdef("cleanup_once", t, "tweak")
22cdef("cleanup_once", "", "tweak", "delete")
23cdef("cleanup_once", "", "uct", "delete")
24cdef("cleanup_once", "", "uctn", "delete")
25cdef("cleanup_once", "user_ct", "uct")
26cdef("cleanup_once", "user_ct", "uctn")
27cdef("config_mac", "{PLOT_CNTRS_MAX = COUNTERS}", "PLOT_Y", 0x10 )
28cdef("config_mac", "_plotconfig();", "PLOT2")
29cdef("geo_ub_default", "", "ub.mac")
30cdef("geo_ub_default", "", "ub.mac")
31cdef("", "", "onwiz", "delete")
32cdef("spec_scan_tail", "powder_cleanup;", "powder_setup")
33cdef("spec_scan_tail", "", "powder_setup", "delete")
34cdef("user_Fheader")
35cdef("user_offsim")
36cdef("user_offsim", "", "getE", "delete")
37cdef("user_offsim", "getE;", "getE")
38cdef("user_onsim")
39cdef("user_Pheader")
40cdef("user_postscan_head")
41cdef("user_prescan_head")
42cdef("user_scan_loop")
43cdef("user_scan_plot")
44cdef("user_scan_tail")
45cdef("user_waitmove","\nwait(1);\n","waitmove_hack","0x20")
46
47# it's possible to embed cdef in a block like this, like in standard.mac
48if DECISION==1{cdef("user_offsim", "getE;", "embedded")}
49
50""" end of  $Id: cdef-examples.mac 982 2012-06-27 19:33:01Z jemian $ """
Note: See TracBrowser for help on using the repository browser.