Main.c 1.8 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071
  1. #include <locale.h>
  2. #include <stdbool.h>
  3. #include <string.h>
  4. // #include "../src/ErrorSimulator.hpp"
  5. // #include "Test.hpp"
  6. // #include "Tests.hpp"
  7. // #include "core/utils/ArrayString.hpp"
  8. // #include "core/utils/Utility.hpp"
  9. /*static void onExit(int code, void* data) {
  10. unsigned int i = *static_cast<unsigned int*>(data);
  11. Core::ArrayString<1024> s;
  12. s.append("Hello from exit #: #");
  13. s.format(code, i);
  14. s.printLine();
  15. Core::print('A');
  16. Core::Test::finalize();
  17. }*/
  18. int main(int argAmount, const char** args) {
  19. setlocale(LC_ALL, "en_US.utf8");
  20. bool light = false;
  21. for(int i = 0; i < argAmount; i++) {
  22. if(strcmp(args[i], "light") == 0) {
  23. light = true;
  24. }
  25. }
  26. (void)light;
  27. /*
  28. Core::testArrayList(light);
  29. Core::testArrayString();
  30. Core::testArray();
  31. Core::testBitArray();
  32. Core::testBox();
  33. Core::testBuffer(light);
  34. Core::testBufferedValue();
  35. Core::testClock(light);
  36. Core::testColor();
  37. Core::testComponents();
  38. Core::testError();
  39. Core::testFileReader();
  40. Core::testFrustum();
  41. Core::testHashedString();
  42. Core::testHashMap(light);
  43. Core::testLinkedList(light);
  44. Core::testList(light);
  45. Core::testMath();
  46. Core::testMatrixStack(light);
  47. Core::testMatrix();
  48. Core::testNew();
  49. Core::testPlane();
  50. Core::testQuaternion();
  51. Core::testRandom(light);
  52. Core::testRingBuffer();
  53. Core::testStack(light);
  54. Core::testThread();
  55. Core::testUniquePointer();
  56. Core::testUtility();
  57. Core::testVector();
  58. Core::testView();
  59. Core::Logger::level = Core::Logger::Level::WARNING;
  60. CORE_LOG_DEBUG("You won't see this!");
  61. Core::Logger::level = Core::Logger::Level::DEBUG;
  62. unsigned int data = 123456789;
  63. Core::setExitHandler(onExit, &data);
  64. CORE_EXIT(1);*/
  65. return 0;
  66. }