@FeatureNew('compiler.get_define', '0.40.0')
@permittedKwargs({'prefix', 'no_builtin_args', 'include_directories', 'args', 'dependencies'})
def get_define_method(self, args, kwargs):
    if (len(args) != 1):
        raise InterpreterException('get_define() takes exactly one argument.')
    check_stringlist(args)
    element = args[0]
    prefix = kwargs.get('prefix', '')
    if (not isinstance(prefix, str)):
        raise InterpreterException('Prefix argument of get_define() must be a string.')
    extra_args = functools.partial(self.determine_args, kwargs)
    (deps, msg) = self.determine_dependencies(kwargs)
    (value, cached) = self.compiler.get_define(element, prefix, self.environment, extra_args=extra_args, dependencies=deps)
    cached = (mlog.blue('(cached)') if cached else '')
    mlog.log('Fetching value of define', mlog.bold(element, True), msg, value, cached)
    return value
@FeatureNew('compiler.get_define', '0.40.0')
@permittedKwargs({'prefix', 'no_builtin_args', 'include_directories', 'args', 'dependencies'})
def get_define_method(self, args, kwargs):
    if (len(args) != 1):
        raise InterpreterException('get_define() takes exactly one argument.')
    check_stringlist(args)
    element = args[0]
    prefix = kwargs.get('prefix', )
    if (not isinstance(prefix, str)):
        raise InterpreterException('Prefix argument of get_define() must be a string.')
    extra_args = functools.partial(self.determine_args, kwargs)
    (deps, msg) = self.determine_dependencies(kwargs)
    (value, cached) = self.compiler.get_define(element, prefix, self.environment, extra_args=extra_args, dependencies=deps)
    cached = (mlog.blue('(cached)') if cached else )
    mlog.log('Fetching value of define', mlog.bold(element, True), msg, value, cached)
    return value