You are an expert in writing code in many different languages. Your goal is to perform code completion for the following code, keeping in mind the rest of the code and the file meta data.
    Metadata details:
    filename: spm_platform.m
    path of file: ./repos/spm
    
    the code of the file until where you have to start completion: function varargout = spm_platform(varargin)
% Platform specific configuration parameters
%
% FORMAT ans = spm_platform(param)
% param - optional string argument, can be
%         - 'bigend'  - return whether this architecture is big endian
%                       - false  - is little endian
%                       - true   - is big endian
%         - 'mexext'  - return MEX filename extension
%         - 'soext'   - return shared library filename extension
%         - 'user'    - return username
%         - 'host'    - return system's host name
%         - 'tempdir' - return name of temp directory
%         - 'desktop' - return whether or not the Desktop is in use
%
% FORMAT PlatFontNames = spm_platform('fonts')
% Return structure with fields named after the generic (UNIX) fonts, the
% field containing the name of the platform specific font.
%
% 
    
function PLATFORM = init_platform           %-Initialise platform variables
%==========================================================================
if strcmpi(spm_check_version,'matlab')
    comp = computer;
else
    if ismac
        comp = uname.machine;
        switch comp
            case {'x86_64'}
                comp = 'MACI64';
            case {'arm64'}
                comp = 'ARM';
            otherwise
                error('%s is not supported.',comp);
        end
    elseif isunix
        comp = uname.machine;
        switch comp
            case {'x86_64'}
                comp = 'GLNXA64';
            case {'armv6l','armv7l','armv8l','armv9l','aarch64','arm64'}
                comp = 'ARM';
            otherwise
                error('%s is not supported.',comp);
        end
    elseif ispc
        comp = 'PCWIN64';
    end
end

%-Platform definitions
%--------------------------------------------------------------------------
PDefs = {'PCWIN64',   'win',   false;...
         'MACI64',    'unx',   false;...
         'MACA64',    'unx',   false;...
         'GLNXA64',   'unx',   false;...
         'ARM',       'unx',   false};

PDefs = cell2struct(PDefs,{'computer','filesys','endian'},2);

%-Which computer?
%--------------------------------------------------------------------------
[issup, ci] = ismember(comp,{PDefs.computer});
if ~issup
    error([comp ' not supported architecture for ' spm('Ver')]);
end