factor/extra/hardware-info/hardware-info.factor

17 lines
404 B
Factor
Raw Normal View History

2008-02-04 18:10:49 -05:00
USING: alien.syntax kernel math prettyprint
combinators vocabs.loader hardware-info.backend system ;
2007-09-20 18:09:08 -04:00
IN: hardware-info
: kb. ( x -- ) 10 2^ /f . ;
: megs. ( x -- ) 20 2^ /f . ;
: gigs. ( x -- ) 30 2^ /f . ;
2008-02-04 18:10:49 -05:00
<<
{
{ [ windows? ] [ "hardware-info.windows" ] }
{ [ linux? ] [ "hardware-info.linux" ] }
{ [ macosx? ] [ "hardware-info.macosx" ] }
{ [ t ] [ f ] }
} cond [ require ] when* >>
2007-09-20 18:09:08 -04:00