renamed luafunc()

This commit is contained in:
2023-11-09 18:34:29 +01:00
parent 7b656c492a
commit a6f8a0fdbe

View File

@@ -259,7 +259,7 @@ func (c *Calc) Eval(line string) {
if contains(c.LuaFunctions, item) { if contains(c.LuaFunctions, item) {
// user provided custom lua functions // user provided custom lua functions
c.luafunc(item) c.EvalLuaFunction(item)
continue continue
} }
@@ -442,7 +442,7 @@ func (c *Calc) Debug(msg string) {
} }
} }
func (c *Calc) luafunc(funcname string) { func (c *Calc) EvalLuaFunction(funcname string) {
// called from calc loop // called from calc loop
var x float64 var x float64
var err error var err error