flu_tonumber Function

public function flu_tonumber(L, index) result(number)

Arguments

Type IntentOptional Attributes Name
type(flu_State) :: L
integer :: index

Return Value real


Calls

proc~~flu_tonumber~~CallsGraph proc~flu_tonumber flu_tonumber interface~lua_tonumberx lua_tonumberx proc~flu_tonumber->interface~lua_tonumberx

Called by

proc~~flu_tonumber~~CalledByGraph proc~flu_tonumber flu_tonumber proc~aot_top_get_real aot_top_get_real proc~aot_top_get_real->proc~flu_tonumber program~test test program~test->proc~flu_tonumber interface~aot_top_get_val~9 aot_top_get_val interface~aot_top_get_val~9->proc~aot_top_get_real

Source Code

  function flu_tonumber(L, index) result(number)
    type(flu_State) :: L
    integer :: index
    real :: number

    integer(kind=c_int) :: c_index
    integer(kind=c_int) :: isnum

    c_index = index
    number = real(lua_tonumberx(L%state, c_index, isnum), &
      &           kind=kind(number))
  end function flu_tonumber