 
 M: struct-class new
     dup "prototype" word-prop
-    [ >c-ptr clone swap memory>struct ] [ <struct> ] if ; inline
+    [ >c-ptr clone swap memory>struct ] [ <struct> ] if* ; inline
 
 ! Struct slot accessors
 

! class definition

: struct-prototype ( class -- prototype )
    [ heap-size <byte-array> ] [ new [ 2 set-slot ] keep ] bi ; ! [ "struct-slots" word-prop ] tri
    ! [ [ initial>> ] [ name>> setter-word ] bi over [ execute( struct value -- struct ) ] [ 2drop ] if ] each ;

: (define-struct-class) ( class slots size align -- )
    [

! (c)Joe Groff bsd license
USING: accessors alien alien.c-types byte-arrays classes
classes.c-types classes.parser classes.tuple
classes.tuple.parser classes.tuple.private fry kernel
