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

Function opCall2

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

Source from the content-addressed store, hash-verified

265}
266
267func opCall2(out OpOutput, _ *OpOutput, _ int, parts []string, vm *vm.VM, _ *vm.Program) *OpOutput {
268 out.Func = true
269 out.FuncName = parts[3]
270 stack := vm.Stack
271
272 num_items := 2
273 for i := len(stack) - 1; i >= 0 && num_items > 0; i-- {
274 out.Args = append(out.Args, autoQuote(stack[i]))
275 num_items--
276 }
277
278 return &out
279}
280
281func opCall3(out OpOutput, _ *OpOutput, _ int, parts []string, vm *vm.VM, _ *vm.Program) *OpOutput {
282 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…