lean4-htt/src/library/compiler/export_attribute.cpp
2019-08-17 06:58:36 -07:00

15 lines
480 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 "library/constants.h"
#include "library/util.h"
namespace lean {
extern "C" object* lean_get_export_name_for(object* env, object *n);
optional<name> get_export_name_for(environment const & env, name const & n) {
return to_optional<name>(lean_get_export_name_for(env.to_obj_arg(), n.to_obj_arg()));
}
}