1 | """ |
---|
2 | .. $Id: cdef-examples.mac 1005 2012-07-11 21:25:58Z jemian $ |
---|
3 | |
---|
4 | Examples of SPEC cdef macros |
---|
5 | ============================== |
---|
6 | |
---|
7 | These examples of SPEC cdef macros were extracted from the |
---|
8 | SPECD ``*.mac`` files. |
---|
9 | The items were obtained via grep, and then cleaned up in an |
---|
10 | editor, then sorted, with redundancies removed. |
---|
11 | """ |
---|
12 | |
---|
13 | |
---|
14 | cdef("user_waitmove", |
---|
15 | "\nwait(1);\n", |
---|
16 | "waitmove_hack", |
---|
17 | "0x20") |
---|
18 | |
---|
19 | cdef("cleanup_once", "", "ct", "delete") |
---|
20 | cdef("cleanup_once", "", "dscan", "delete") |
---|
21 | cdef("cleanup_once", "onp; show_cnts; offp; user_ct", "ct") |
---|
22 | cdef("cleanup_once", "powder_cleanup;", "powder_setup") |
---|
23 | cdef("cleanup_once", "", "powder_setup", "delete") |
---|
24 | cdef("cleanup_once", "_scanabort;", "scan_cleanup") |
---|
25 | cdef("cleanup_once", "", "scan_cleanup", "delete") |
---|
26 | cdef("cleanup_once", sprintf("dscan_cleanup $1 %s;", _c1), "dscan") |
---|
27 | cdef("cleanup_once", t, "tweak") |
---|
28 | cdef("cleanup_once", "", "tweak", "delete") |
---|
29 | cdef("cleanup_once", "", "uct", "delete") |
---|
30 | cdef("cleanup_once", "", "uctn", "delete") |
---|
31 | cdef("cleanup_once", "user_ct", "uct") |
---|
32 | cdef("cleanup_once", "user_ct", "uctn") |
---|
33 | cdef("config_mac", "{PLOT_CNTRS_MAX = COUNTERS}", "PLOT_Y", 0x10 ) |
---|
34 | cdef("config_mac", "_plotconfig();", "PLOT2") |
---|
35 | cdef("geo_ub_default", "", "ub.mac") |
---|
36 | cdef("geo_ub_default", "", "ub.mac") |
---|
37 | cdef("", "", "onwiz", "delete") |
---|
38 | cdef("spec_scan_tail", "powder_cleanup;", "powder_setup") |
---|
39 | cdef("spec_scan_tail", "", "powder_setup", "delete") |
---|
40 | cdef("user_Fheader") |
---|
41 | cdef("user_offsim") |
---|
42 | cdef("user_offsim", "", "getE", "delete") |
---|
43 | cdef("user_offsim", "getE;", "getE") |
---|
44 | cdef("user_onsim") |
---|
45 | cdef("user_Pheader") |
---|
46 | cdef("user_postscan_head") |
---|
47 | cdef("user_prescan_head") |
---|
48 | cdef("user_prescan_head"," |
---|
49 | if(CCD_FLAG){ _user_prescan_head_ccd} |
---|
50 | ","ccd","0x10") |
---|
51 | cdef("user_scan_loop") |
---|
52 | cdef("user_scan_plot") |
---|
53 | cdef("user_scan_tail") |
---|
54 | cdef("user_waitmove","\nwait(1);\n","waitmove_hack","0x20") |
---|
55 | cdef("user_waitmove", |
---|
56 | "\nwait(1);\n", |
---|
57 | "waitmove_hack", |
---|
58 | "0x20") |
---|
59 | |
---|
60 | # it's possible to embed cdef in a block like this, like in standard.mac |
---|
61 | if DECISION==1{cdef("user_offsim", "getE;", "embedded")} |
---|
62 | |
---|
63 | """ end of $Id: cdef-examples.mac 1005 2012-07-11 21:25:58Z jemian $ """ |
---|