Skip to content

Commit e707496

Browse files
committed
[SB05-065] lkql: allow builtin functions with 0 args
Change-Id: Iae234d37d7332453ade0525cd840b266b1a2536f
1 parent bbf5334 commit e707496

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

lkql/extensions/src/lkql-primitives.ads

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -205,7 +205,10 @@ package LKQL.Primitives is
205205
type Builtin_Function_Profile is
206206
array (Positive range <>) of Builtin_Param_Description;
207207

208-
type Builtin_Function_Description (N : Positive) is record
208+
Empty_Profile : constant Builtin_Function_Profile (1 .. 0) :=
209+
(others => <>);
210+
211+
type Builtin_Function_Description (N : Natural) is record
209212
Name : Unbounded_Text_Type;
210213
Params : Builtin_Function_Profile (1 .. N);
211214
Fn_Access : Native_Function_Access;

0 commit comments

Comments
 (0)