We often use FileSource or FileSink during UT or debug, don't we? But they become unnecessary codes on production environment.
In C/C++ application, we can use #ifdef _DEBUG and #endif to distinguish appropriate codes associated with the target environment.
In SPL codes, can we use similar technique?
If there is a nice idea, could you help me?
Thanks & Regards,
This topic has been locked.
Pinned topic Can I use the technique like "#ifdef _DEBUG" & "#endif" on SPL source code?
Answered question This question has been answered.
Unanswered question This question has not been answered yet.
hnasgaard 27000064QT200 Posts
Re: Can I use the technique like "#ifdef _DEBUG" & "#endif" on SPL source code?2013-02-05T15:18:09ZThis is the accepted answer. This is the accepted answer.There is no notion of a preprocessor in the SPL compiler, but you could use mixed-mode along with some compile command-line options to gen either debug or non-debug code.