Skip to content

Commit

Permalink
Add debug prints
Browse files Browse the repository at this point in the history
  • Loading branch information
sthiele committed Oct 12, 2023
1 parent d255ce5 commit adb93af
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/ast_internals.rs
Original file line number Diff line number Diff line change
Expand Up @@ -404,9 +404,9 @@ impl<'a> AST<'a> {
/// Decrement the reference count of an AST node.
/// *Note:* The node is deleted if the reference count reaches zero.
fn release(&self) {
// println!("release");
// println!("ast: {:?}", self);
// println!("ast: {}", self.to_string().unwrap());
eprintln!("release");
println!("ast: {:?}", self);
println!("ast: {}", self.to_string().unwrap());
unsafe { clingo_ast_release(self.ptr.as_ptr()) }
}
/// Create a shallow copy of an AST node.
Expand Down

0 comments on commit adb93af

Please sign in to comment.