iuplua_open

IUP - Portable User Interface

iuplua_open

Initializes the Lua Binding. This function should be called by the host program before running any Lua functions, but it is important to call it after IupOpen.

It is also allowed to call iuplua_open without calling IupOpen. Then IupOpen will be internally called. This enable you to dynamically load IUP using Lua 5 "require". This is also valid for all the additional controls when IUP isĀ  dynamically loaded. To call IupClose in this way you must call iuplua_close.

Parameters/Return

int iuplua_open(void); [in C for Lua 3]
int iuplua_open(lua_State *L); [in C for Lua 5]
[There is no equivalent in Lua]
For Lua 3 returns a non zero value if successfull.
For Lua 5 returns 0 (the number of elements in the stack).

Note

For a more detailed explanation on the system control for the Lua Binding, please refer to Lua Binding / System Control.

See Also

IupOpen, Guide / System Control