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.
1 reply Latest Post - 2013-02-05T15:18:09Z by hnasgaard
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 PostsACCEPTED ANSWER
Re: Can I use the technique like "#ifdef _DEBUG" & "#endif" on SPL source code?2013-02-05T15:18:09Z in response to SarutonThere 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.