mirror of
https://github.com/ProgramSnail/Lama.git
synced 2025-12-24 07:38:46 +00:00
Fix all prints
This commit is contained in:
parent
a91f61dbfa
commit
db9067b748
3 changed files with 174 additions and 44 deletions
|
|
@ -497,6 +497,9 @@ let compile_call env ?fname nargs tail =
|
|||
let add_printf_count =
|
||||
match fname with
|
||||
| Some "Lprintf" -> [ Mov (L (nargs - 1), r11) ]
|
||||
| Some "Lsprintf" -> [ Mov (L (nargs - 1), r11) ]
|
||||
| Some "Lfprintf" -> [ Mov (L (nargs - 2), r11) ]
|
||||
| Some "Lfailure" -> [ Mov (L (nargs - 1), r11) ]
|
||||
| _ -> []
|
||||
in
|
||||
let fname = adjust_builtin_function_name fname in
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue