dm_lua_api Module

DMPACK API for Lua.


Uses

  • module~~dm_lua_api~~UsesGraph module~dm_lua_api dm_lua_api iso_c_binding iso_c_binding module~dm_lua_api->iso_c_binding module~dm_error dm_error module~dm_lua_api->module~dm_error module~dm_lua dm_lua module~dm_lua_api->module~dm_lua module~dm_util dm_util module~dm_lua_api->module~dm_util module~dm_ascii dm_ascii module~dm_error->module~dm_ascii module~dm_kind dm_kind module~dm_error->module~dm_kind module~dm_lua->iso_c_binding module~dm_lua->module~dm_error module~dm_lua->module~dm_util lua lua module~dm_lua->lua module~dm_file dm_file module~dm_lua->module~dm_file module~dm_lua->module~dm_kind module~dm_string dm_string module~dm_lua->module~dm_string module~dm_util->module~dm_error module~dm_util->module~dm_kind module~dm_file->module~dm_error module~dm_file->module~dm_kind iso_fortran_env iso_fortran_env module~dm_kind->iso_fortran_env module~dm_string->module~dm_error module~dm_string->module~dm_kind

Used by

  • module~~dm_lua_api~~UsedByGraph module~dm_lua_api dm_lua_api module~dmpack dmpack module~dmpack->module~dm_lua_api proc~dm_config_open dm_config_open proc~dm_config_open->module~dm_lua_api proc~luaopen_libdmpack luaopen_libdmpack proc~luaopen_libdmpack->module~dm_lua_api

Functions

public function dm_lua_api_register(lua, errors, log_levels, procedures, response_types) result(rc)

This function exports parameters and procedures of the DMPACK API to the given Lua environment lua.

Read more…

Arguments

Type IntentOptional Attributes Name
type(lua_state_type), intent(inout) :: lua

Lua state type.

logical, intent(in), optional :: errors

Export error codes.

logical, intent(in), optional :: log_levels

Export log level.

logical, intent(in), optional :: procedures

Export procedures.

logical, intent(in), optional :: response_types

Export response type parameters.

Return Value integer

public function dm_lua_api_deg2gon(ptr) result(n) bind(c))

Lua function deg2gon() that converts angle from [deg] to [gon].

Arguments

Type IntentOptional Attributes Name
type(c_ptr), intent(in), value :: ptr

Pointer to Lua interpreter.

Return Value integer(kind=c_int)

Number of results.

public function dm_lua_api_deg2rad(ptr) result(n) bind(c))

Lua function deg2rad() that converts angle from [deg] to [rad].

Arguments

Type IntentOptional Attributes Name
type(c_ptr), intent(in), value :: ptr

Pointer to Lua interpreter.

Return Value integer(kind=c_int)

Number of results.

public function dm_lua_api_gon2deg(ptr) result(n) bind(c))

Lua function gon2deg() that converts angle from [gon] to [deg].

Arguments

Type IntentOptional Attributes Name
type(c_ptr), intent(in), value :: ptr

Pointer to Lua interpreter.

Return Value integer(kind=c_int)

Number of results.

public function dm_lua_api_gon2rad(ptr) result(n) bind(c))

Lua function gon2rad() that converts angle from [gon] to [rad].

Arguments

Type IntentOptional Attributes Name
type(c_ptr), intent(in), value :: ptr

Pointer to Lua interpreter.

Return Value integer(kind=c_int)

Number of results.

public function dm_lua_api_rad2deg(ptr) result(n) bind(c))

Lua function rad2deg() that converts angle from [rad] to [deg].

Arguments

Type IntentOptional Attributes Name
type(c_ptr), intent(in), value :: ptr

Pointer to Lua interpreter.

Return Value integer(kind=c_int)

Number of results.

public function dm_lua_api_rad2gon(ptr) result(n) bind(c))

Lua function rad2gon() that converts angle from [rad] to [gon].

Arguments

Type IntentOptional Attributes Name
type(c_ptr), intent(in), value :: ptr

Pointer to Lua interpreter.

Return Value integer(kind=c_int)

Number of results.