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.

Print.cpp 1.7KB

10 years ago
10 years ago
10 years ago
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051
  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. #ifdef CARLA_PROPER_CPP11_SUPPORT
  19. # include <cstdint>
  20. #else
  21. # include <stdint.h>
  22. #endif
  23. // -----------------------------------------------------------------------
  24. int main()
  25. {
  26. carla_debug("DEBUG");
  27. carla_stdout("STDOUT");
  28. carla_stderr("STDERR");
  29. carla_stderr2("STDERR2");
  30. carla_stdout("char %c", (char)'0');
  31. carla_stdout("int %i", (int)0);
  32. carla_stdout("uint %u", (uint)0);
  33. carla_stdout("long %li", (long)0);
  34. carla_stdout("ulong %lu", (ulong)0);
  35. carla_stdout("float %.0f", 0.0f);
  36. carla_stdout("double %g", 0.0);
  37. carla_stdout("int64 " P_INT64, (int64_t)0);
  38. carla_stdout("uint64 " P_UINT64, (uint64_t)0);
  39. carla_stdout("intptr " P_INTPTR, (intptr_t)0);
  40. carla_stdout("uintptr " P_UINTPTR, (uintptr_t)0);
  41. carla_stdout("size " P_SIZE, (size_t)0);
  42. carla_stdout("std::size " P_SIZE, (std::size_t)0);
  43. return 0;
  44. }
  45. // -----------------------------------------------------------------------