Tao.Lua SDK Documentation

Lua.luaL_newstate Method 

Creates a new Lua state, calling lua_newstate with an allocation function based on the standard C realloc function and setting a panic function (see lua_atpanic) that prints an error message to the standard error output in case of fatal errors.

[Visual Basic]
Public Shared Function luaL_newstate() As IntPtr
[C#]
public static IntPtr luaL_newstate();

Return Value

Returns the new state, or NULL if there is a memory allocation error.

See Also

Lua Class | Tao.Lua Namespace