]> gitweb.factorcode.org Git - factor.git/commitdiff
alien.c-types: fill out the higher-order stack effect of if-void
authorJoe Groff <arcata@gmail.com>
Sat, 3 Sep 2011 18:09:39 +0000 (11:09 -0700)
committerJoe Groff <arcata@gmail.com>
Sat, 3 Sep 2011 18:10:08 +0000 (11:10 -0700)
basis/alien/c-types/c-types.factor

index 63c6f72ee6fc950e44a8a53df39e1f12ddf3bdbf..c3f742b8706edad148026d468799ffe721018d95 100644 (file)
@@ -164,7 +164,7 @@ TUPLE: long-long-type < c-type ;
 : <long-long-type> ( -- c-type )
     long-long-type new ;
 
-: if-void ( c-type true false -- )
+: if-void ( ..a c-type true: ( ..a -- ..b ) false: ( ..a c-type -- ..b ) -- ..b )
     pick void? [ drop nip call ] [ nip call ] if ; inline
 
 SYMBOLS: