def METHOD_NAME(self, **kw):
    self.start_msg('Checking for inline')
    if not 'define_name' in kw:
        kw['define_name'] = 'INLINE_MACRO'
    if not 'features' in kw:
        if self.env.CXX:
            kw['features'] = ['cxx']
        else:
            kw['features'] = ['c']
    for x in INLINE_VALUES:
        kw['fragment'] = INLINE_CODE % (x, x)
        try:
            self.check(**kw)
        except self.errors.ConfigurationError:
            continue
        else:
            self.end_msg(x)
            if x != 'inline':
                self.define('inline', x, quote=False)
            return x
    self.fatal('could not use inline functions')