test_c_compilation.c 1.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
  1. #define STB_IMAGE_RESIZE_IMPLEMENTATION
  2. #include "stb_image_resize2.h"
  3. #define STB_SPRINTF_IMPLEMENTATION
  4. #include "stb_sprintf.h"
  5. #define STB_PERLIN_IMPLEMENTATION
  6. #define STB_IMAGE_WRITE_IMPLEMENTATION
  7. #define STB_C_LEXER_IMPLEMENTATIOn
  8. #define STB_DIVIDE_IMPLEMENTATION
  9. #define STB_IMAGE_IMPLEMENTATION
  10. #define STB_HERRINGBONE_WANG_TILE_IMEPLEMENTATIOn
  11. #define STB_RECT_PACK_IMPLEMENTATION
  12. #define STB_VOXEL_RENDER_IMPLEMENTATION
  13. #define STB_EASY_FONT_IMPLEMENTATION
  14. #define STB_DXT_IMPLEMENTATION
  15. #define STB_INCLUDE_IMPLEMENTATION
  16. #include "stb_herringbone_wang_tile.h"
  17. #include "stb_image.h"
  18. #include "stb_image_write.h"
  19. #include "stb_perlin.h"
  20. #include "stb_c_lexer.h"
  21. #include "stb_divide.h"
  22. #include "stb_rect_pack.h"
  23. #include "stb_dxt.h"
  24. #include "stb_include.h"
  25. #include "stb_ds.h"
  26. #define STBVOX_CONFIG_MODE 1
  27. #include "stb_voxel_render.h"
  28. void STBTE_DRAW_RECT(int x0, int y0, int x1, int y1, unsigned int color)
  29. {
  30. }
  31. void STBTE_DRAW_TILE(int x0, int y0, unsigned short id, int highlight, float *data)
  32. {
  33. }
  34. #define STB_TILEMAP_EDITOR_IMPLEMENTATION
  35. //#include "stb_tilemap_editor.h" // @TODO: it's broken
  36. int quicktest(void)
  37. {
  38. char buffer[999];
  39. stbsp_sprintf(buffer, "test%%test");
  40. return 0;
  41. }