From 1a89d0ab85e311c545cd42b6ca10d83a10d016bf Mon Sep 17 00:00:00 2001 From: Thomas von Dein Date: Tue, 31 Oct 2023 19:14:40 +0100 Subject: [PATCH] +TODOs --- go/calc.go | 2 +- go/interpreter.go | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/go/calc.go b/go/calc.go index cc96787..0805ccb 100644 --- a/go/calc.go +++ b/go/calc.go @@ -34,7 +34,7 @@ Available operators: basic operators: + - * / Math operators: -^ power` +^ power` // FIXME: add help strings from lua functions // That way I can add custom functions to completion func GetCompleteCustomFunctions() func(string) []string { diff --git a/go/interpreter.go b/go/interpreter.go index 1ae4e2b..87ed682 100644 --- a/go/interpreter.go +++ b/go/interpreter.go @@ -12,6 +12,7 @@ var L *lua.LState var LuaFuncs map[string]int +// FIXME: add 2nd var with help string // called from lua to register a 1 arg math function func RegisterFuncOneArg(L *lua.LState) int { function := L.ToString(1)