Main Page | Modules | Namespace List | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Namespace Members | Class Members | File Members | Related Pages

Macros providing formatted output relevant for a certain test modes
[Logging a certain test results]

Collaboration diagram for Macros providing formatted output relevant for a certain test modes:


Defines

#define __LOG_TEST(s)   { if ( nvutil::LogTest::instance()->isEnabled() ) { nvutil::LogTest::instance()->format s; } }
 Output test relevant format string s if output is enabled.
#define __LOG_BENCH_TEST(s)   { if ( nvutil::LogBenchTest::instance()->isEnabled() ) { nvutil::LogBenchTest::instance()->format s; } }
 Output benchmark test relevant format string s if output is enabled.
#define __LOG_SHADER_TEST(s)   { if ( nvutil::LogShaderTest::instance()->isEnabled() ) { nvutil::LogShaderTest::instance()->format s; } }
 Output shader test relevant format string s if output is enabled.

Detailed Description

These macros will only output if a specified test mode was enabled before, using the matching __LOG_TEST_INIT macro.
Note:
As macros cannot handle optional arguments as used with format strings, clients must use extra brackets for the argument:
 __LOG_SHADER_TEST(( "Error: %X\n", getErrCode() ));

Define Documentation

#define __LOG_TEST  )     { if ( nvutil::LogTest::instance()->isEnabled() ) { nvutil::LogTest::instance()->format s; } }
 

Output test relevant format string s if output is enabled.

#define __LOG_BENCH_TEST  )     { if ( nvutil::LogBenchTest::instance()->isEnabled() ) { nvutil::LogBenchTest::instance()->format s; } }
 

Output benchmark test relevant format string s if output is enabled.

#define __LOG_SHADER_TEST  )     { if ( nvutil::LogShaderTest::instance()->isEnabled() ) { nvutil::LogShaderTest::instance()->format s; } }
 

Output shader test relevant format string s if output is enabled.


Generated on Tue Mar 1 13:20:36 2005 for NVSGSDK by NVIDIA