2
0

sys.cpp 828 B

123456789101112131415161718192021222324252627282930313233343536373839
  1. // This is a test class for the debugger. This file isn't actually used or required.
  2. #include <stdio.h>
  3. #include <stdlib.h>
  4. #include <cstring>
  5. #include <math.h>
  6. #include <vector>
  7. #include <map>
  8. #include <string>
  9. namespace Hey
  10. {
  11. namespace Dude
  12. {
  13. namespace Bro
  14. {
  15. struct Vector2
  16. {
  17. float mX;
  18. float mY;
  19. void Write();
  20. float get__Length();
  21. };
  22. void Vector2::Write()
  23. {
  24. // Debug visualizers work for C++ on
  25. // things like std::map and std::string
  26. std::map<int, std::string> testMap;
  27. testMap[1] = "One";
  28. testMap[2] = "Two";
  29. // Calls back into Length property getter in Beef
  30. printf("X:%f Y:%f Length:%f\n", mX, mY, get__Length());
  31. }
  32. }
  33. }
  34. }