branch | transitional_engine |
changeset 16037 | 72c71c385579 |
parent 16005 | 4d682779bd29 |
--- a/tools/pas2c/Pas2C.hs Tue Sep 05 17:01:46 2023 +0200 +++ b/tools/pas2c/Pas2C.hs Tue Sep 05 17:02:08 2023 +0200 @@ -715,6 +715,9 @@ liftM (parens . (<> text " + 1")) $ initExpr2C' e initExpr2C' (BuiltInFunction "pred" [e]) = liftM (parens . (<> text " - 1")) $ initExpr2C' e +initExpr2C' (BuiltInFunction "round" [e]) = do + e <- initExpr2C' e + return $ text "(int)" <> parens e initExpr2C' b@(BuiltInFunction _ _) = error $ show b initExpr2C' (InitTypeCast t' i) = do e <- initExpr2C i