/** * @file tests/pp.cpp * @brief Preprocessor helpers * @date 5 May, 2016 * @author jjacobs * @copyright 2016 Dual Inventive Technology Centre B.V. */ #include #include TEST(pp, PP_FILE_LINE) { printf("DI_PP_FILE_LINE: \"%s\"\n", DI_PP_FILE_LINE); } TEST(pp, PP_COMPONENT_FILE_LINE) { printf("DI_PP_COMPONENT_FILE_LINE(pp_test): \"%s\"\n", DI_PP_COMPONENT_FILE_LINE(pp_test)); } TEST(pp, PP_COMPONENT_FILE_LINE_MSG) { printf("DI_PP_COMPONENT_FILE_LINE_MSG(pp_test, \"Hello from pp test\"): \"%s\"\n", DI_PP_COMPONENT_FILE_LINE_MSG(pp_test, "Hello from pp test")); }