flu_getglobal Function

public function flu_getglobal(L, k) result(luatype)

Arguments

Type IntentOptional Attributes Name
type(flu_State) :: L
character(len=*) :: k

Return Value integer


Calls

proc~~flu_getglobal~~CallsGraph proc~flu_getglobal flu_getglobal interface~lua_getglobal lua_getglobal proc~flu_getglobal->interface~lua_getglobal

Called by

proc~~flu_getglobal~~CalledByGraph proc~flu_getglobal flu_getglobal proc~aot_reference_for aot_reference_for proc~aot_reference_for->proc~flu_getglobal proc~aot_table_push aot_table_push proc~aot_reference_for->proc~aot_table_push proc~aot_table_open aot_table_open proc~aot_table_open->proc~flu_getglobal proc~aot_table_open->proc~aot_table_push proc~aot_table_push->proc~flu_getglobal proc~aot_type_of aot_type_of proc~aot_type_of->proc~flu_getglobal proc~aot_type_of->proc~aot_table_push proc~get_table_double get_table_double proc~get_table_double->proc~flu_getglobal proc~get_table_double->proc~aot_table_push proc~get_table_extdouble get_table_extdouble proc~get_table_extdouble->proc~flu_getglobal proc~get_table_extdouble->proc~aot_table_push proc~get_table_extdouble_v get_table_extdouble_v proc~get_table_extdouble_v->proc~flu_getglobal proc~get_table_extdouble_v->proc~aot_table_push proc~get_table_extdouble_vvect get_table_extdouble_vvect proc~get_table_extdouble_vvect->proc~flu_getglobal proc~get_table_extdouble_vvect->proc~aot_table_push proc~get_table_integer get_table_integer proc~get_table_integer->proc~flu_getglobal proc~get_table_integer->proc~aot_table_push proc~get_table_logical get_table_logical proc~get_table_logical->proc~flu_getglobal proc~get_table_logical->proc~aot_table_push proc~get_table_long get_table_long proc~get_table_long->proc~flu_getglobal proc~get_table_long->proc~aot_table_push proc~get_table_quadruple get_table_quadruple proc~get_table_quadruple->proc~flu_getglobal proc~get_table_quadruple->proc~aot_table_push proc~get_table_quadruple_v get_table_quadruple_v proc~get_table_quadruple_v->proc~flu_getglobal proc~get_table_quadruple_v->proc~aot_table_push proc~get_table_quadruple_vvect get_table_quadruple_vvect proc~get_table_quadruple_vvect->proc~flu_getglobal proc~get_table_quadruple_vvect->proc~aot_table_push proc~get_table_real get_table_real proc~get_table_real->proc~flu_getglobal proc~get_table_real->proc~aot_table_push proc~get_table_string get_table_string proc~get_table_string->proc~flu_getglobal proc~get_table_string->proc~aot_table_push proc~get_table_userdata get_table_userdata proc~get_table_userdata->proc~flu_getglobal proc~get_table_userdata->proc~aot_table_push program~test test program~test->proc~flu_getglobal interface~aot_get_val aot_get_val interface~aot_get_val->proc~get_table_extdouble interface~aot_get_val~2 aot_get_val interface~aot_get_val~2->proc~get_table_double interface~aot_get_val~2->proc~get_table_integer interface~aot_get_val~2->proc~get_table_logical interface~aot_get_val~2->proc~get_table_long interface~aot_get_val~2->proc~get_table_real interface~aot_get_val~2->proc~get_table_string interface~aot_get_val~2->proc~get_table_userdata interface~aot_get_val~3 aot_get_val interface~aot_get_val~3->proc~get_table_quadruple_vvect interface~aot_get_val~4 aot_get_val interface~aot_get_val~4->proc~get_table_quadruple_v interface~aot_get_val~7 aot_get_val interface~aot_get_val~7->proc~get_table_extdouble_vvect interface~aot_get_val~8 aot_get_val interface~aot_get_val~8->proc~get_table_extdouble_v interface~aot_get_val~9 aot_get_val interface~aot_get_val~9->proc~get_table_quadruple interface~aot_push aot_push interface~aot_push->proc~aot_table_push interface~aot_table_get_val aot_table_get_val interface~aot_table_get_val->proc~get_table_extdouble interface~aot_table_get_val~2 aot_table_get_val interface~aot_table_get_val~2->proc~get_table_double interface~aot_table_get_val~2->proc~get_table_integer interface~aot_table_get_val~2->proc~get_table_logical interface~aot_table_get_val~2->proc~get_table_long interface~aot_table_get_val~2->proc~get_table_real interface~aot_table_get_val~2->proc~get_table_string interface~aot_table_get_val~2->proc~get_table_userdata interface~aot_table_get_val~3 aot_table_get_val interface~aot_table_get_val~3->proc~get_table_quadruple_vvect interface~aot_table_get_val~4 aot_table_get_val interface~aot_table_get_val~4->proc~get_table_quadruple_v interface~aot_table_get_val~7 aot_table_get_val interface~aot_table_get_val~7->proc~get_table_extdouble_vvect interface~aot_table_get_val~8 aot_table_get_val interface~aot_table_get_val~8->proc~get_table_extdouble_v interface~aot_table_get_val~9 aot_table_get_val interface~aot_table_get_val~9->proc~get_table_quadruple proc~aot_exists aot_exists proc~aot_exists->proc~aot_table_push proc~aot_fun_table aot_fun_table proc~aot_fun_table->proc~aot_table_push proc~aot_path_open_table aot_path_open_table proc~aot_path_open_table->proc~aot_table_open proc~aot_require_buffer aot_require_buffer proc~aot_require_buffer->proc~aot_table_open proc~get_table_double_v get_table_double_v proc~get_table_double_v->proc~aot_type_of proc~get_table_double_vvect get_table_double_vvect proc~get_table_double_vvect->proc~aot_type_of proc~get_table_integer_v get_table_integer_v proc~get_table_integer_v->proc~aot_type_of proc~get_table_integer_vvect get_table_integer_vvect proc~get_table_integer_vvect->proc~aot_type_of proc~get_table_logical_v get_table_logical_v proc~get_table_logical_v->proc~aot_type_of proc~get_table_logical_vvect get_table_logical_vvect proc~get_table_logical_vvect->proc~aot_type_of proc~get_table_long_v get_table_long_v proc~get_table_long_v->proc~aot_type_of proc~get_table_long_vvect get_table_long_vvect proc~get_table_long_vvect->proc~aot_type_of proc~get_table_real_v get_table_real_v proc~get_table_real_v->proc~aot_type_of proc~get_table_real_vvect get_table_real_vvect proc~get_table_real_vvect->proc~aot_type_of proc~get_table_string_v get_table_string_v proc~get_table_string_v->proc~aot_type_of proc~get_table_string_vvect get_table_string_vvect proc~get_table_string_vvect->proc~aot_type_of interface~aot_fun_open aot_fun_open interface~aot_fun_open->proc~aot_fun_table interface~aot_get_val~5 aot_get_val interface~aot_get_val~5->proc~get_table_double_vvect interface~aot_get_val~5->proc~get_table_integer_vvect interface~aot_get_val~5->proc~get_table_logical_vvect interface~aot_get_val~5->proc~get_table_long_vvect interface~aot_get_val~5->proc~get_table_real_vvect interface~aot_get_val~5->proc~get_table_string_vvect interface~aot_get_val~6 aot_get_val interface~aot_get_val~6->proc~get_table_double_v interface~aot_get_val~6->proc~get_table_integer_v interface~aot_get_val~6->proc~get_table_logical_v interface~aot_get_val~6->proc~get_table_long_v interface~aot_get_val~6->proc~get_table_real_v interface~aot_get_val~6->proc~get_table_string_v interface~aot_path_open aot_path_open interface~aot_path_open->proc~aot_path_open_table proc~aot_path_open_fun aot_path_open_fun interface~aot_path_open->proc~aot_path_open_fun interface~aot_table_get_val~5 aot_table_get_val interface~aot_table_get_val~5->proc~get_table_double_vvect interface~aot_table_get_val~5->proc~get_table_integer_vvect interface~aot_table_get_val~5->proc~get_table_logical_vvect interface~aot_table_get_val~5->proc~get_table_long_vvect interface~aot_table_get_val~5->proc~get_table_real_vvect interface~aot_table_get_val~5->proc~get_table_string_vvect interface~aot_table_get_val~6 aot_table_get_val interface~aot_table_get_val~6->proc~get_table_double_v interface~aot_table_get_val~6->proc~get_table_integer_v interface~aot_table_get_val~6->proc~get_table_logical_v interface~aot_table_get_val~6->proc~get_table_long_v interface~aot_table_get_val~6->proc~get_table_real_v interface~aot_table_get_val~6->proc~get_table_string_v proc~aot_path_open_fun->proc~aot_path_open_table proc~aot_path_open_fun->interface~aot_fun_open

Source Code

  function flu_getglobal(L, k) result(luatype)
    type(flu_State)  :: L
    character(len=*) :: k
    integer          :: luatype

    integer(kind=c_int) :: res

    character(len=len_trim(k)+1) :: c_k

    c_k = trim(k) // c_null_char
    res = lua_getglobal(L%state, c_k)
    luatype = int(res)
  end function flu_getglobal