|
|
Warp <war### [at] tagpovrayorg> wrote:
> I wonder how hard would it be to add some kind of error/warning catching.
> In other words, when an error or warning happens, some SDL code is executed.
> (Then you could write there eg. #debug commands which output values of loop
> variables, etc. This would help a lot debugging.)
This could perhaps be one possibility:
#macro MyMacro()
#debug concat(str(Index, 0, 0), "\n")
#end
#onerror MyMacro
#declare Index = 0;
#while(Index < 1000)
cylinder { something } // The error happens in this line
#declare Index = Index+1;
#end
--
- Warp
Post a reply to this message
|
|