Audio plugin host https://kx.studio/carla
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

48 lines
1.6KB

  1. /*
  2. * Carla Print Tests
  3. * Copyright (C) 2013-2014 Filipe Coelho <falktx@falktx.com>
  4. *
  5. * This program is free software; you can redistribute it and/or
  6. * modify it under the terms of the GNU General Public License as
  7. * published by the Free Software Foundation; either version 2 of
  8. * the License, or any later version.
  9. *
  10. * This program is distributed in the hope that it will be useful,
  11. * but WITHOUT ANY WARRANTY; without even the implied warranty of
  12. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  13. * GNU General Public License for more details.
  14. *
  15. * For a full copy of the GNU General Public License see the doc/GPL.txt file.
  16. */
  17. #include "CarlaUtils.hpp"
  18. #include <cstdint>
  19. // -----------------------------------------------------------------------
  20. int main()
  21. {
  22. carla_debug("DEBUG");
  23. carla_stdout("STDOUT");
  24. carla_stderr("STDERR");
  25. carla_stderr2("STDERR2");
  26. carla_stdout("char %c", (char)'0');
  27. carla_stdout("int %i", (int)0);
  28. carla_stdout("uint %u", (uint)0);
  29. carla_stdout("long %li", (long)0);
  30. carla_stdout("ulong %lu", (ulong)0);
  31. carla_stdout("float %.0f", 0.0f);
  32. carla_stdout("double %g", 0.0);
  33. carla_stdout("int64 " P_INT64, (int64_t)0);
  34. carla_stdout("uint64 " P_UINT64, (uint64_t)0);
  35. carla_stdout("intptr " P_INTPTR, (intptr_t)0);
  36. carla_stdout("uintptr " P_UINTPTR, (uintptr_t)0);
  37. carla_stdout("size " P_SIZE, (size_t)0);
  38. carla_stdout("std::size " P_SIZE, (std::size_t)0);
  39. return 0;
  40. }
  41. // -----------------------------------------------------------------------