aboutsummaryrefslogblamecommitdiffstats
path: root/lib/tools/test/emacs_SUITE_data/macros
blob: 6c874e9187bf6b29b62336ace97045c48b0d8ad1 (plain) (tree)






























                                                   
%% -*- 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().