Skip to content

Instantly share code, notes, and snippets.

@djmitche
Created January 17, 2010 22:19
Show Gist options
  • Select an option

  • Save djmitche/279622 to your computer and use it in GitHub Desktop.

Select an option

Save djmitche/279622 to your computer and use it in GitHub Desktop.
%inline %{
static gboolean same_elements(
XferElement *a,
XferElement *b)
{
return a == b;
}
%}
# ...
%perlcode {
use overload '==' => sub { Amanda::Xfer::same_elements($_[0], $_[1]); };
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment