lean4-htt/src/include/lean/lean_gmp.h
Sebastian Ullrich 3b4b2cc89d
fix: do not dllexport symbols in core static libraries (#3601)
On Windows, we now compile all core `.o`s twice, once with and without
`dllexport`, for use in the shipped dynamic and static libraries,
respectively. On other platforms, we export always as before to avoid
the duplicate work.

---------

Co-authored-by: tydeu <tydeu@hatpress.net>
2024-03-15 11:58:34 +00:00

26 lines
578 B
C

/*
Copyright (c) 2021 Microsoft Corporation. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Author: Leonardo de Moura
*/
#pragma once
#include <gmp.h>
#include <lean/lean.h>
#ifdef __cplusplus
extern "C" {
#endif
#ifdef LEAN_USE_GMP
LEAN_EXPORT lean_object * lean_alloc_mpz(mpz_t);
/* Set `v` with the value stored in `o`.
- pre: `lean_is_mpz(o)`
- pre: `v` has already been initialized using `mpz_init` (or equivalent).
*/
LEAN_EXPORT void lean_extract_mpz_value(lean_object * o, mpz_t v);
#endif
#ifdef __cplusplus
}
#endif