builtin-funcs: export import functions (made their names uppercase)

This commit is contained in:
2024-04-13 04:18:14 +02:00
parent bd323efedf
commit e493c40c7b
3 changed files with 5 additions and 5 deletions
+1 -1
View File
@@ -101,7 +101,7 @@ func mulFunc(ctx ExprContext, name string, args []any) (result any, err error) {
return
}
func importMathFuncs(ctx ExprContext) {
func ImportMathFuncs(ctx ExprContext) {
ctx.RegisterFunc("add", &simpleFunctor{f: addFunc}, 0, -1)
ctx.RegisterFunc("mul", &simpleFunctor{f: mulFunc}, 0, -1)
}