dummy.c 1.7 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677
  1. // Dummy file for testing out Emscripten build with plain GCC
  2. typedef signed char S8; ///< Compiler independent Signed Char
  3. typedef unsigned char U8; ///< Compiler independent Unsigned Char
  4. typedef signed short S16; ///< Compiler independent Signed 16-bit short
  5. typedef unsigned short U16; ///< Compiler independent Unsigned 16-bit short
  6. typedef signed int S32; ///< Compiler independent Signed 32-bit integer
  7. typedef unsigned int U32; ///< Compiler independent Unsigned 32-bit integer
  8. typedef float F32; ///< Compiler independent 32-bit float
  9. typedef double F64; ///< Compiler independent 64-bit float
  10. //------------------------------------------------------------------------------
  11. //------------------------------------- String Types
  12. typedef char UTF8; ///< Compiler independent 8 bit Unicode encoded character
  13. typedef unsigned short UTF16; ///< Compiler independent 16 bit Unicode encoded character
  14. typedef unsigned int UTF32; ///< Compiler independent 32 bit Unicode encoded character
  15. typedef const char* StringTableEntry;
  16. U32 _EmscriptenGetDesktopHeight()
  17. {
  18. return 600;
  19. }
  20. U32 _EmscriptenGetDesktopWidth()
  21. {
  22. return 800;
  23. }
  24. U32 _EmscriptenGetDesktopBpp()
  25. {
  26. return 32;
  27. }
  28. int js_AlertOK(const char *title, const char *message)
  29. {
  30. return 0;
  31. }
  32. int js_AlertOKCancel(const char *title, const char *message)
  33. {
  34. return 0;
  35. }
  36. int js_AlertRetry(const char *title, const char *message)
  37. {
  38. return 0;
  39. }
  40. int js_AlertYesNo(const char *title, const char *message)
  41. {
  42. return 0;
  43. }
  44. void step_warn()
  45. {
  46. }
  47. void js_ConsoleEnabled(const char *prompt)
  48. {
  49. }
  50. void js_ConsoleDisabled()
  51. {
  52. }
  53. void js_ConsoleLine(const char *message)
  54. {
  55. }