aot_fun_id Function

public function aot_fun_id(fun) result(id)

A string identifying the function uniquely in the Lua script.

Arguments

Type IntentOptional Attributes Name
type(aot_fun_type), intent(in) :: fun

Function to identify.

Return Value character(len=32)

Identification of the function as a string.


Contents

Source Code


Source Code

  function aot_fun_id(fun) result(id)
    !> Function to identify.
    type(aot_fun_type), intent(in) :: fun

    !> Identification of the function as a string.
    character(len=32) :: id

    character(len=32) :: tmp

    write(tmp,'(i0)') fun%id
    id = adjustl(tmp)
  end function aot_fun_id