mg_value_bool

Returns non-zero value if value contains true, zero otherwise.

Type check should be made first. Accessing the wrong value results in undefined behavior. TODO: check if this is really ok, as the original return type was int !!!

extern (C)
bool
mg_value_bool
(
const mg_value* val
)

Meta