open_config_buffer Subroutine

public subroutine open_config_buffer(L, buffer, bufName, ErrCode, ErrString)

Subroutine to load and execute a script given in a buffer (bytecode).

Arguments

TypeIntentOptionalAttributesName
type(flu_State) :: L

Handle to the Lua script

character, intent(in) :: buffer(:)

String with Lua code to load.

character(len=*), intent(in), optional :: bufName

Name for the buffer to use in debug messages.

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 from Lua to the stdout.

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

Obtained error description from the Lua stack.

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


Calls

proc~~open_config_buffer~~CallsGraph proc~open_config_buffer open_config_buffer proc~flu_isopen flu_isopen proc~open_config_buffer->proc~flu_isopen flul_newstate flul_newstate proc~open_config_buffer->flul_newstate proc~aot_err_handler aot_err_handler proc~open_config_buffer->proc~aot_err_handler flul_openlibs flul_openlibs proc~open_config_buffer->flul_openlibs proc~flu_pcall flu_pcall proc~open_config_buffer->proc~flu_pcall flul_loadbuffer flul_loadbuffer proc~open_config_buffer->flul_loadbuffer proc~flu_tolstring flu_tolstring proc~aot_err_handler->proc~flu_tolstring interface~lua_pcallk lua_pcallk proc~flu_pcall->interface~lua_pcallk interface~lua_tolstring lua_tolstring proc~flu_tolstring->interface~lua_tolstring

Called by

proc~~open_config_buffer~~CalledByGraph proc~open_config_buffer open_config_buffer proc~aot_require_buffer aot_require_buffer proc~aot_require_buffer->proc~open_config_buffer

Contents


Variables

TypeVisibilityAttributesNameInitial
integer, private :: err