MCPcopy Index your code
hub / github.com/crowdsecurity/crowdsec / opCall1

Function opCall1

pkg/exprhelpers/debugger.go:253–265  ·  view source on GitHub ↗
(out OpOutput, _ *OpOutput, _ int, parts []string, vm *vm.VM, _ *vm.Program)

Source from the content-addressed store, hash-verified

251}
252
253func opCall1(out OpOutput, _ *OpOutput, _ int, parts []string, vm *vm.VM, _ *vm.Program) *OpOutput {
254 out.Func = true
255 out.FuncName = parts[3]
256 stack := vm.Stack
257
258 num_items := 1
259 for i := len(stack) - 1; i >= 0 && num_items > 0; i-- {
260 out.Args = append(out.Args, autoQuote(stack[i]))
261 num_items--
262 }
263
264 return &out
265}
266
267func opCall2(out OpOutput, _ *OpOutput, _ int, parts []string, vm *vm.VM, _ *vm.Program) *OpOutput {
268 out.Func = true

Callers

nothing calls this directly

Calls 1

autoQuoteFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…