]> git.tdb.fi Git - libs/gl.git/blobdiff - source/glsl/debug.cpp
Store functions definitions in Stage
[libs/gl.git] / source / glsl / debug.cpp
index c29a60ceab724c6b19069538d38aa3ad144b7d29..b913f5b493a2b2ad550d5f83903abe74ab68affb 100644 (file)
@@ -27,6 +27,9 @@ const std::string &DumpTree::apply(Stage &stage)
                        append(text);
                }
 
+       for(std::map<string, FunctionDeclaration *>::const_iterator i=stage.functions.begin(); i!=stage.functions.end(); ++i)
+               append(format("Function: %%%d %s", get_label(*i->second), i->first));
+
        last_branch();
        stage.content.visit(*this);
        return formatted;