Tao.Lua SDK Documentation

Lua.lua_topointer Method 

Converts the value at the given acceptable index to a generic C pointer (void*). The value may be a userdata, a table, a thread, or a function; otherwise, lua_topointer returns NULL. Different objects will give different pointers. There is no way to convert the pointer back to its original value.

[Visual Basic]
Public Shared Function lua_topointer( _
   ByVal L As IntPtr, _
   ByVal idx As Integer _
) As IntPtr
[C#]
public static IntPtr lua_topointer(
   IntPtr L,
   int idx
);

Parameters

L
idx

Return Value

Remarks

Typically this function is used only for debug information.

See Also

Lua Class | Tao.Lua Namespace