imageworks/OpenShadingLanguage — pull request #145 by lgritz (2012-06-20 19:16:16+00:00)
Title: Review: Allow OSL printf of closures to recursively print closures-containing-closures

For a while, we have supported closures that take other closures as parameters (and thus could be used to construct "nested" closures). But printf() in OSL was not set up to recursively descend when printing closures as strings. This patch fixes this, which is handy for people debugging shaders by printing out the closures and need it to display the full nesting.