function [options,macros,values] = getBuildConfigOptionsInfo(h)

%   Copyright 2014 The MathWorks, Inc.

narginchk( 1, 1 );
config = h.getBuildConfiguration();
optionsObj = config.Options;
options = optionsObj.keys();
numOpts = numel( options );
macros = cell( 1, numOpts );
values = cell( 1, numOpts );
for i = 1:numOpts
    optionItem = h.getOptionsString( optionsObj.getValue( options{ i } ) );
    macros{ i } = optionItem.getMacro();
    values{ i } = optionItem.getValue();
end
end
