void function(object* thing)
{
    bool enabled = thing && thing->enabled() ? true : false;
    ...
}
By cpluspluspro, 2017-10-30 21:15:57