3
0
Fork 0
mirror of https://github.com/Z3Prover/z3 synced 2025-04-06 17:44:08 +00:00

fixed update_api.py

Signed-off-by: Leonardo de Moura <leonardo@microsoft.com>
This commit is contained in:
Leonardo de Moura 2012-10-18 12:55:28 -07:00
parent 5fa96ccb0b
commit 8cde0c0672
2 changed files with 3 additions and 6 deletions

View file

@ -46,12 +46,8 @@ namespace Microsoft.Z3
public unsafe class LIB
{
#if DEBUG
const string Z3_DLL_NAME = "z3_dbg.dll";
#else
const string Z3_DLL_NAME = "z3.dll";
#endif
const string Z3_DLL_NAME = "z3.dll";
[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);

View file

@ -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 unsafe class LIB\n')
dotnet.write(' {\n')
dotnet.write(' '
' const string Z3_DLL_NAME = \"z3.dll\";\n'
' \n');
dotnet.write(' [DllImport(Z3_DLL_NAME, CallingConvention = CallingConvention.Cdecl, CharSet = CharSet.Ansi)]\n')