mirror of
https://github.com/Z3Prover/z3
synced 2025-04-12 12:08:18 +00:00
fixed update_api.py
Signed-off-by: Leonardo de Moura <leonardo@microsoft.com>
This commit is contained in:
parent
5fa96ccb0b
commit
8cde0c0672
|
@ -46,12 +46,8 @@ namespace Microsoft.Z3
|
||||||
|
|
||||||
public unsafe class LIB
|
public unsafe class LIB
|
||||||
{
|
{
|
||||||
#if DEBUG
|
const string Z3_DLL_NAME = "z3.dll";
|
||||||
const string Z3_DLL_NAME = "z3_dbg.dll";
|
|
||||||
#else
|
|
||||||
const string Z3_DLL_NAME = "z3.dll";
|
|
||||||
#endif
|
|
||||||
|
|
||||||
[DllImport(Z3_DLL_NAME, CallingConvention = CallingConvention.Cdecl, CharSet = CharSet.Ansi)]
|
[DllImport(Z3_DLL_NAME, CallingConvention = CallingConvention.Cdecl, CharSet = CharSet.Ansi)]
|
||||||
public extern static void Z3_set_error_handler(Z3_context a0, Z3_error_handler a1);
|
public extern static void Z3_set_error_handler(Z3_context a0, Z3_error_handler a1);
|
||||||
|
|
||||||
|
|
|
@ -509,6 +509,7 @@ def mk_dotnet():
|
||||||
dotnet.write(' public delegate void Z3_error_handler(Z3_context c, Z3_error_code e);\n\n')
|
dotnet.write(' public delegate void Z3_error_handler(Z3_context c, Z3_error_code e);\n\n')
|
||||||
dotnet.write(' public unsafe class LIB\n')
|
dotnet.write(' public unsafe class LIB\n')
|
||||||
dotnet.write(' {\n')
|
dotnet.write(' {\n')
|
||||||
|
dotnet.write(' '
|
||||||
' const string Z3_DLL_NAME = \"z3.dll\";\n'
|
' const string Z3_DLL_NAME = \"z3.dll\";\n'
|
||||||
' \n');
|
' \n');
|
||||||
dotnet.write(' [DllImport(Z3_DLL_NAME, CallingConvention = CallingConvention.Cdecl, CharSet = CharSet.Ansi)]\n')
|
dotnet.write(' [DllImport(Z3_DLL_NAME, CallingConvention = CallingConvention.Cdecl, CharSet = CharSet.Ansi)]\n')
|
||||||
|
|
Loading…
Reference in a new issue