mirror of
https://github.com/Z3Prover/z3
synced 2025-04-14 04:48:45 +00:00
44 lines
689 B
Java
44 lines
689 B
Java
/**
|
|
Copyright (c) 2012-2014 Microsoft Corporation
|
|
|
|
Module Name:
|
|
|
|
AstVectorDecRefQueue.java
|
|
|
|
Abstract:
|
|
|
|
Author:
|
|
|
|
@author Christoph Wintersteiger (cwinter) 2012-03-15
|
|
|
|
Notes:
|
|
|
|
**/
|
|
|
|
package com.microsoft.z3;
|
|
|
|
class ASTVectorDecRefQueue extends IDecRefQueue
|
|
{
|
|
protected void incRef(Context ctx, long obj)
|
|
{
|
|
try
|
|
{
|
|
Native.astVectorIncRef(ctx.nCtx(), obj);
|
|
} catch (Z3Exception e)
|
|
{
|
|
// OK.
|
|
}
|
|
}
|
|
|
|
protected void decRef(Context ctx, long obj)
|
|
{
|
|
try
|
|
{
|
|
Native.astVectorDecRef(ctx.nCtx(), obj);
|
|
} catch (Z3Exception e)
|
|
{
|
|
// OK.
|
|
}
|
|
}
|
|
};
|