Difference between revisions of "Simple lib soliton"

From OpenEUO
Jump to: navigation, search
m (Created page with "== Calling Convention == Call local sl = simplelib_soliton__(...) Args ignored Results sl is a table, the unique interface to simplelib == Usage Example == if type(simpleli...")
 
m (Calling Convention)
Line 1: Line 1:
 
== Calling Convention ==
 
== Calling Convention ==
 
Call
 
Call
  local sl = simplelib_soliton__(...)
+
  local sl = simplelib_soliton__()
 
Args
 
Args
 
  ignored
 
  ignored

Revision as of 16:50, 1 November 2010

Calling Convention

Call

local sl = simplelib_soliton__()

Args

ignored

Results

sl is a table, the unique interface to simplelib

Usage Example

if type(simplelib_soliton__) ~= 'function' then
  print('Forgot to initialize the library') 
end

Description

simplelib_soliton__ is the only variable name defined by default in G_ by simplelib. It acts as a guard value to keep the library from being initialized more than one time. There is no need to directly interact with this variable. Calling it returns the unique interface table of simplelib.

See Also