anchor.diff: -%% Copyright (c) 2016-2020 Robert Virding
  +%% Copyright (c) 2016-2022 Robert Virding
   %%
   %% Licensed under the Apache License, Version 2.0 (the "License");
   %% you may not use this file except in compliance with the License.
  
positive.code: %% also enter all the functions and variables defined inside ewc so
  %% they can be reached from these macros when the L-E-E-M function is
  %% compiled. We do NOT need to save the ewc macros as they will
  %% accessible when he module is compiled.
  %%
  %% The macros will be expanded in the context of the module when it is
  %% later compiled and not in the context of the calling module. This
  
negative.code: collect_macro({['extend-module',_,Atts],_}, Mst) ->
      collect_attrs(Atts, Mst);
  collect_macro({['define-function',Name,_,Def],_}, Mst) ->
      %% Check for user defined LFE-EXPAND-EXPORTED-MACRO.
      case {Name,function_arity(Def)} of
          {'LFE-EXPAND-EXPORTED-MACRO',3} ->
              Mst#umac{uleem=true};
          _ -> Mst                                %Ignore other functions
      end;
  collect_macro(_, Mst) -> Mst.                   %Ignore everything else
  