Value.type readonly



The Value.type property gets the type of the C Value as a string.

Notes

  • This property returns the same result as the C.type() function.

Example

local c = require "c" -- create a C boolean Value set to true local bool = c.bool(true) -- prints the Value type print("C Value type is "..bool.type)