aboutsummaryrefslogtreecommitdiffstats
path: root/lib/tools/test/emacs_SUITE_data/macros
blob: 6c874e9187bf6b29b62336ace97045c48b0d8ad1 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
%% -*- Mode: erlang; indent-tabs-mode: nil -*-
%% Copyright Ericsson AB 2017. All Rights Reserved.

%%% Macros should be indented as code

-define(M0, ok).

-define(M1,
        case X of
            undefined -> error;
            _ -> ok
        end).

-define(M2(M2A1,
           M2A2),
        func(M2A1,
             M2A2)
       ).

-define(
   M3,
   undefined
  ).

-ifdef(DEBUG).
-define(LOG,
        logger:log(?MODULE,?LINE)
       ).
-else().
-define(LOG, ok).
-endif().