EAStdC.cpp 754 B

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  1. ///////////////////////////////////////////////////////////////////////////////
  2. // Copyright (c) Electronic Arts Inc. All rights reserved.
  3. ///////////////////////////////////////////////////////////////////////////////
  4. #include <EAStdC/EAStdC.h>
  5. #include <EAStdC/internal/SprintfCore.h>
  6. namespace EA
  7. {
  8. namespace StdC
  9. {
  10. EASTDC_API void Init()
  11. {
  12. SprintfLocal::EASprintfInit();
  13. }
  14. EASTDC_API void Shutdown()
  15. {
  16. SprintfLocal::EASprintfShutdown();
  17. }
  18. // Disabled by default, for compatibility with C99 behavior.
  19. bool gAssertionsEnabled = false;
  20. EASTDC_API void SetAssertionsEnabled(bool enabled)
  21. {
  22. gAssertionsEnabled = enabled;
  23. }
  24. EASTDC_API bool GetAssertionsEnabled()
  25. {
  26. return gAssertionsEnabled;
  27. }
  28. }
  29. }