MCPcopy Create free account
hub / github.com/crowdsecurity/crowdsec / opCall3

Function opCall3

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

Source from the content-addressed store, hash-verified

279}
280
281func opCall3(out OpOutput, _ *OpOutput, _ int, parts []string, vm *vm.VM, _ *vm.Program) *OpOutput {
282 out.Func = true
283 out.FuncName = parts[3]
284 stack := vm.Stack
285
286 num_items := 3
287 for i := len(stack) - 1; i >= 0 && num_items > 0; i-- {
288 out.Args = append(out.Args, autoQuote(stack[i]))
289 num_items--
290 }
291
292 return &out
293}
294
295func opCallFast(_ OpOutput, _ *OpOutput, _ int, _ []string, _ *vm.VM, _ *vm.Program) *OpOutput {
296 // double check OpCallFast and OpCallTyped

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…