test_compilation_cpp.cpp 327 B

12345678910111213141516
  1. #include <zf_log.c>
  2. namespace
  3. {
  4. void mock_output_callback(const zf_log_message *, void *)
  5. {
  6. }
  7. }
  8. int main(int argc, char *argv[])
  9. {
  10. zf_log_set_output_v(ZF_LOG_PUT_STD, 0, mock_output_callback);
  11. ZF_LOGI("log from cpp, argc=%i", argc);
  12. ZF_LOGI_MEM(argv, argc * sizeof(*argv), "log from cpp, argv pointers:");
  13. return 0;
  14. }