flu_pushcclosure Subroutine

public subroutine flu_pushcclosure(L, fn, n)

Arguments

Type IntentOptional Attributes Name
type(flu_State), value :: L
procedure(lua_Function) :: fn
integer :: n

Calls

proc~~flu_pushcclosure~~CallsGraph proc~flu_pushcclosure flu_pushcclosure interface~lua_pushcclosure lua_pushcclosure proc~flu_pushcclosure->interface~lua_pushcclosure

Called by

proc~~flu_pushcclosure~~CalledByGraph proc~flu_pushcclosure flu_pushcclosure proc~flu_register flu_register proc~flu_register->proc~flu_pushcclosure

Source Code

  subroutine flu_pushcclosure(L, fn, n)
    type(flu_State), value :: L
    procedure(lua_Function) :: fn
    integer :: n

    integer(c_int) :: c_n
    type(c_funptr) :: c_fn

    c_n = n
    c_fn = c_funloc(fn)

    call lua_pushcclosure(L%state, c_fn, c_n)

  end subroutine flu_pushcclosure