X-Git-Url: http://git.tdb.fi/?p=libs%2Fgl.git;a=blobdiff_plain;f=source%2Fglsl%2Fdebug.cpp;h=700acbf9cd50a66c8db4e98c54343d8696a332ce;hp=68615ed6e06d67c7491a2e88ce10bce360b1685d;hb=3a1fe833ea04df75449706f1d773f6e65521a392;hpb=1476e64621ecbd7b17b00ae2c958322fd39918de diff --git a/source/glsl/debug.cpp b/source/glsl/debug.cpp index 68615ed6..700acbf9 100644 --- a/source/glsl/debug.cpp +++ b/source/glsl/debug.cpp @@ -240,6 +240,17 @@ void DumpTree::visit(Assignment &assign) end_sub(); } +void DumpTree::visit(TernaryExpression &ternary) +{ + append(format("Ternary: %s -> %s", (ternary.oper->token[0]=='?' ? "?:" : ternary.oper->token), format_type(ternary.type))); + begin_sub(); + ternary.condition->visit(*this); + ternary.true_expr->visit(*this); + last_branch(); + ternary.false_expr->visit(*this); + end_sub(); +} + void DumpTree::visit(FunctionCall &call) { string head = "Function call: ";