function removeMacro(h,name)

%   Copyright 2014-2020 The MathWorks, Inc.

narginchk( 2, 2 );
name = convertStringsToChars(name);

if ~ischar( name )
    error( message( 'coder_compile:toolchain:MacroInputNotAString' ) )
end
h.Macros.remove( name );
end
