Encapsulation of the Lua state.
No internal information on the Lua state is required, and so all
components are private. It suffices therefore, to keep a c_ptr
reference to the Lua state.
Type | Visibility | Attributes | Name | Initial | |||
---|---|---|---|---|---|---|---|
type(c_ptr), | private | :: | state | = | c_null_ptr | ||
logical, | private | :: | opened_libs | = | .false. |
type flu_State
private
type(c_ptr) :: state = c_null_ptr
logical :: opened_libs = .false.
end type flu_State