lean4-htt/src/library/compiler/implemented_by_attribute.cpp
2019-08-16 20:52:10 -07:00

14 lines
456 B
C++

/*
Copyright (c) 2019 Microsoft Corporation. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Author: Leonardo de Moura
*/
#include "kernel/environment.h"
namespace lean {
extern "C" object* lean_get_implemented_by(object*, object*);
optional<name> get_implemented_by_attribute(environment const & env, name const & n) {
return to_optional<name>(lean_get_implemented_by(env.to_obj_arg(), n.to_obj_arg()));
}
}