mirror of
https://github.com/ProgramSnail/Lama.git
synced 2025-12-05 22:38:44 +00:00
Fixed Not_found in call compilation
This commit is contained in:
parent
16d9f06afb
commit
2728488b9b
2 changed files with 2 additions and 2 deletions
|
|
@ -560,7 +560,7 @@ let compile_call env ?fname nargs tail =
|
|||
in
|
||||
let add_argc_counter =
|
||||
let argc_before_vararg =
|
||||
Option.map (fun fname -> List.assoc fname vararg_functions) fname
|
||||
Option.bind fname (fun fname -> List.assoc_opt fname vararg_functions)
|
||||
in
|
||||
match argc_before_vararg with
|
||||
(* For vararg functions we add counter of only vararg argumnets.
|
||||
|
|
|
|||
|
|
@ -2,7 +2,7 @@ SHELL := /bin/bash
|
|||
|
||||
FILES=$(wildcard *.lama)
|
||||
ALL=$(sort $(FILES:.lama=.o))
|
||||
LAMAC=../src/lamac -g
|
||||
LAMAC=../src/lamac
|
||||
|
||||
all: $(ALL)
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue