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

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

another multiline test

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 2.0 KB
Line 
1"""
2.. $Id: cdef-examples.mac 1005 2012-07-11 21:25:58Z 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
13
14cdef("user_waitmove",
15        "\nwait(1);\n",
16        "waitmove_hack",
17        "0x20")
18
19cdef("cleanup_once", "", "ct", "delete")
20cdef("cleanup_once", "", "dscan", "delete")
21cdef("cleanup_once", "onp; show_cnts; offp; user_ct", "ct")
22cdef("cleanup_once", "powder_cleanup;", "powder_setup")
23cdef("cleanup_once", "", "powder_setup", "delete")
24cdef("cleanup_once", "_scanabort;", "scan_cleanup")
25cdef("cleanup_once", "", "scan_cleanup", "delete")
26cdef("cleanup_once", sprintf("dscan_cleanup $1 %s;", _c1), "dscan")
27cdef("cleanup_once", t, "tweak")
28cdef("cleanup_once", "", "tweak", "delete")
29cdef("cleanup_once", "", "uct", "delete")
30cdef("cleanup_once", "", "uctn", "delete")
31cdef("cleanup_once", "user_ct", "uct")
32cdef("cleanup_once", "user_ct", "uctn")
33cdef("config_mac", "{PLOT_CNTRS_MAX = COUNTERS}", "PLOT_Y", 0x10 )
34cdef("config_mac", "_plotconfig();", "PLOT2")
35cdef("geo_ub_default", "", "ub.mac")
36cdef("geo_ub_default", "", "ub.mac")
37cdef("", "", "onwiz", "delete")
38cdef("spec_scan_tail", "powder_cleanup;", "powder_setup")
39cdef("spec_scan_tail", "", "powder_setup", "delete")
40cdef("user_Fheader")
41cdef("user_offsim")
42cdef("user_offsim", "", "getE", "delete")
43cdef("user_offsim", "getE;", "getE")
44cdef("user_onsim")
45cdef("user_Pheader")
46cdef("user_postscan_head")
47cdef("user_prescan_head")
48    cdef("user_prescan_head","
49         if(CCD_FLAG){ _user_prescan_head_ccd}
50         ","ccd","0x10")
51cdef("user_scan_loop")
52cdef("user_scan_plot")
53cdef("user_scan_tail")
54cdef("user_waitmove","\nwait(1);\n","waitmove_hack","0x20")
55cdef("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
61if DECISION==1{cdef("user_offsim", "getE;", "embedded")}
62
63""" end of  $Id: cdef-examples.mac 1005 2012-07-11 21:25:58Z jemian $ """
Note: See TracBrowser for help on using the repository browser.