2013-11-03 20:02:57 +00:00
|
|
|
/*
|
|
|
|
Copyright (c) 2013 Microsoft Corporation. All rights reserved.
|
|
|
|
Released under Apache 2.0 license as described in the file LICENSE.
|
|
|
|
|
|
|
|
Author: Leonardo de Moura
|
|
|
|
*/
|
|
|
|
#ifdef LEAN_USE_LUA
|
|
|
|
#include <lua.hpp>
|
|
|
|
namespace lean {
|
2013-11-05 03:45:15 +00:00
|
|
|
class mpz;
|
2013-11-04 21:54:51 +00:00
|
|
|
void open_mpz(lua_State * L);
|
2013-11-05 03:45:15 +00:00
|
|
|
bool is_mpz(lua_State * L, int idx);
|
|
|
|
mpz & to_mpz(lua_State * L, int idx);
|
2013-11-05 05:28:17 +00:00
|
|
|
int push_mpz(lua_State * L, mpz const & val);
|
2013-11-05 03:45:15 +00:00
|
|
|
|
|
|
|
class mpq;
|
2013-11-04 21:54:51 +00:00
|
|
|
void open_mpq(lua_State * L);
|
2013-11-05 03:45:15 +00:00
|
|
|
bool is_mpq(lua_State * L, int idx);
|
|
|
|
mpq & to_mpq(lua_State * L, int idx);
|
2013-11-05 05:28:17 +00:00
|
|
|
int push_mpq(lua_State * L, mpq const & val);
|
2013-11-03 20:02:57 +00:00
|
|
|
}
|
|
|
|
#endif
|