PerlGameDev/Box2D-perl — comment on commit 9beb880509437150a43b514da49829012b40487a
File:  line 0
By Blaizer:

sv_setref_pv, which turns C objects into Perl objects, takes a void*, not a pointer of the actual object type. CLASS is the thing that actually does the magic. This will speed things up a little and it also makes writing methods that can return different classed objects easier.