Union.type readonly
Gets the type of the Union as a string
.
- This property returns the same result as the C.type() function.
- If the Union is a C Union definition, the property returns the string
"Union<cdef>"
Example
local c = require "c"
-- Defines a RECT Union
local RECT = c.Union("iiii", "left", "top", "right", "bottom")
-- Creates a new RECT
local r = RECT()
print("Type of RECT is "..RECT.type)
print("Type of r is "..r.type)