aot_out_toChunk Subroutine

public subroutine aot_out_toChunk(out_conf, chunk, ErrCode, ErrString)

This subroutine converts information written in outunit to string

Arguments

TypeIntentOptionalAttributesName
type(aot_out_type), intent(in) :: out_conf
character(len=*), intent(out) :: chunk

String with Lua code to load.

integer, intent(out), optional :: ErrCode

Error code returned by Lua during loading or executing the file.

This optional parameter might be used to react on errors in the calling side. If neither ErrCode nor ErrString are given, this subroutine will stop the program execution and print the error message

character(len=*), intent(out), optional :: ErrString

Error description

This optional argument holds the error message in case something went wrong. It can be used to provide some feedback to the user in the calling routine. If neither ErrCode nor ErrString are provided, this subroutine will print the error message and stop program execution.


Contents


Variables

TypeVisibilityAttributesNameInitial
logical, private :: stop_on_error
integer, private :: error
integer, private :: chunk_len
integer, private :: chunk_left
integer, private :: read_len
character(len=320), private :: err_string
logical, private :: unitOpened
integer, private :: read_stat
character(len=320), private :: chunk_line