build: Fix --no-build-shared option to properly cancel --build-shared
[charm.git] / contrib / ci.snippets
blobb066174532bbc8148ebf5add5e62f9479fbd6df2
1 # Entry method prototype.
2 snippet entry
3         entry [${3:flags}] void ${1:name}(${2:args});
4 # Entry method definition.
5 snippet def
6         entry void ${1:name}(${2:args}) {
7                 ${3:/* code */}
8         };
9 # When.
10 snippet when
11         when ${1:name}${3:[iter]}(${2:CkReductionMsg *msg}) {
12                 ${4:/* code */}
13         };
14 # main
15 snippet main
16         mainmodule ${1:main} {
17                 mainchare ${2:Main} {
18                         entry $2(${3});
19                         ${4}
20                 };
21         };
22 # contribute
23 snippet contribute
24         contribute(${1:sizeof(struct)}, ${2:ptr}, CkReduction::${3:client});