Tao.Lua SDK Documentation |
|
Lua.lua_newstate Method
Creates a new, independent state.
[Visual Basic]
Public Shared Function lua_newstate( _
ByVal
f As
lua_Alloc, _
ByVal
ud As
IntPtr _
) As
IntPtr
Parameters
-
f
- The argument f is the allocator function.
-
ud
- The second argument, ud, is an opaque pointer that Lua simply passes to the allocator in every call.
Return Value
Returns NULL if cannot create the state (due to lack of memory).
Remarks
Lua does all memory allocation for this state through this function.
See Also
Lua Class | Tao.Lua Namespace