mirror of
https://github.com/Z3Prover/z3
synced 2025-04-07 09:55:19 +00:00
... convenience parameters, etc. Signed-off-by: Christoph M. Wintersteiger <cwinter@microsoft.com>
32 lines
588 B
Java
32 lines
588 B
Java
/**
|
|
* Copyright (c) 2012 Microsoft Corporation
|
|
* @author Christoph M. Wintersteiger (cwinter)
|
|
**/
|
|
|
|
package com.microsoft.z3;
|
|
|
|
class ASTMapDecRefQueue extends IDecRefQueue
|
|
{
|
|
protected void incRef(Context ctx, long obj)
|
|
{
|
|
try
|
|
{
|
|
Native.astMapIncRef(ctx.nCtx(), obj);
|
|
} catch (Z3Exception e)
|
|
{
|
|
// OK.
|
|
}
|
|
}
|
|
|
|
protected void decRef(Context ctx, long obj)
|
|
{
|
|
try
|
|
{
|
|
Native.astMapDecRef(ctx.nCtx(), obj);
|
|
} catch (Z3Exception e)
|
|
{
|
|
// OK.
|
|
}
|
|
}
|
|
};
|