mirror of
https://github.com/Z3Prover/z3
synced 2025-04-25 10:05:32 +00:00
Java API: Added exception wrappers and build dependencies.
Signed-off-by: Christoph M. Wintersteiger <cwinter@microsoft.com>
This commit is contained in:
parent
654c02701c
commit
0c1f2a8281
47 changed files with 4908 additions and 4554 deletions
|
@ -7,13 +7,25 @@ package com.microsoft.z3;
|
|||
|
||||
class ASTMapDecRefQueue extends IDecRefQueue
|
||||
{
|
||||
public void IncRef(Context ctx, long obj)
|
||||
{
|
||||
Native.astMapIncRef(ctx.nCtx(), obj);
|
||||
}
|
||||
public void IncRef(Context ctx, long obj)
|
||||
{
|
||||
try
|
||||
{
|
||||
Native.astMapIncRef(ctx.nCtx(), obj);
|
||||
} catch (Z3Exception e)
|
||||
{
|
||||
// OK.
|
||||
}
|
||||
}
|
||||
|
||||
public void DecRef(Context ctx, long obj)
|
||||
{
|
||||
Native.astMapDecRef(ctx.nCtx(), obj);
|
||||
}
|
||||
public void DecRef(Context ctx, long obj)
|
||||
{
|
||||
try
|
||||
{
|
||||
Native.astMapDecRef(ctx.nCtx(), obj);
|
||||
} catch (Z3Exception e)
|
||||
{
|
||||
// OK.
|
||||
}
|
||||
}
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue