mirror of
https://codeberg.org/scip/rpnc.git
synced 2025-12-17 04:21:01 +01:00
renamed luafunc()
This commit is contained in:
4
calc.go
4
calc.go
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user