diff -r 89488f5b99ca -r 5d817ba976f7 tools/pas2c.hs --- a/tools/pas2c.hs Wed May 02 22:12:58 2012 +0400 +++ b/tools/pas2c.hs Wed May 02 22:51:42 2012 +0400 @@ -376,6 +376,10 @@ (True, BTInt, [i], Just _) -> do i' <- id2CTyped t i return [text "enum" <> braces (i' <+> ie)] + (True, BTFloat, [i], Just e) -> do + i' <- id2CTyped t i + ie <- initExpr2C e + return [text "#define" <+> i' <+> parens ie <> text "\n"] _ -> liftM (map(\i -> t' i <+> ie)) $ mapM (id2CTyped t) ids where initExpr Nothing = return $ empty