mirror of
https://github.com/ProgramSnail/Lama.git
synced 2025-12-23 23:28:46 +00:00
Sysargs
This commit is contained in:
parent
c09a3b36b6
commit
33ec55e76e
6 changed files with 41 additions and 1 deletions
|
|
@ -377,7 +377,7 @@ let compile cmd env imports code =
|
|||
Repmovsl
|
||||
] @
|
||||
(if f = "main"
|
||||
then [Call "L__gc_init"]
|
||||
then [Call "L__gc_init"; Push (I (12, ebp)); Push (I (8, ebp)); Call "set_args"; Binop ("+", L 8, esp)]
|
||||
else []
|
||||
) @
|
||||
(if f = cmd#topname
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue