lean2/src/util/name_set.h
Leonardo de Moura 1a8d75c4f0 feat(util): name_set Lua API
Signed-off-by: Leonardo de Moura <leonardo@microsoft.com>
2014-05-07 18:32:53 -07:00

18 lines
524 B
C++

/*
Copyright (c) 2013 Microsoft Corporation. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Author: Leonardo de Moura
*/
#pragma once
#include "util/rb_tree.h"
#include "util/name.h"
#include "util/lua.h"
namespace lean {
typedef rb_tree<name, name_quick_cmp> name_set;
/** \brief Make a name that does not occur in \c s, based on the given suggestion. */
name mk_unique(name_set const & s, name const & suggestion);
UDATA_DEFS_CORE(name_set)
void open_name_set(lua_State * L);
}