test_cpp_compilation.cpp
This file
Path
tests/test_cpp_compilation.cpp
32 lines · 978 bytes · C++
Last changed by
STBI_MALLOC etc.Sean Barrettbefore adoptionba5e333
History of this fileTake it
fix use of stbrp_coord if no stb_rect_pack;Sean Barrettbefore adoption2643925
line 1why, one step back1#define STB_TRUETYPE_IMPLEMENTATIONrename test files to be more meaningfulSean Barrettbefore adoption42bd3e2
lines 2–6why, one step back2#define STB_PERLIN_IMPLEMENTATION3#define STB_IMAGE_WRITE_IMPLEMENTATION4#define STB_DXT_IMPLEMENATION5#define STB_C_LEXER_IMPLEMENTATIOn6#define STB_DIVIDE_IMPLEMENTATIONMerge branch 'headerify'Sean Barrettbefore adoptionb96edc0
line 7why, one step back7#define STB_IMAGE_IMPLEMENTATIONinitial commitSean Barrettbefore adoption88c99e4
line 8why, one step back8#define STB_HERRINGBONE_WANG_TILE_IMPLEMENTATIONvarious fixes for compilation testSean Barrettbefore adoptionb6f8358
line 9why, one step back9#define STB_RECT_PACK_IMPLEMENTATIONrename test files to be more meaningfulSean Barrettbefore adoption42bd3e2
line 10why, one step back10STBI_MALLOC etc.Sean Barrettbefore adoptionba5e333
lines 11–18why, one step back11#define STBI_MALLOC my_malloc12#define STBI_FREE my_free13#define STBI_REALLOC my_realloc1415void *my_malloc(size_t) { return 0; }16void *my_realloc(void *, size_t) { return 0; }17void my_free(void *) { }18Fix assert() that should be STBI_ASSERT()Sean Barrettbefore adoptionf547761
line 19why, one step back19#include "stb_image.h"fix use of stbrp_coord if no stb_rect_pack;Sean Barrettbefore adoption2643925
line 20why, one step back20#include "stb_rect_pack.h"rename test files to be more meaningfulSean Barrettbefore adoption42bd3e2
lines 21–26why, one step back21#include "stb_truetype.h"22#include "stb_image_write.h"23#include "stb_perlin.h"24#include "stb_dxt.h"25#include "stb_c_lexer.h"26#include "stb_divide.h"initial commitSean Barrettbefore adoption88c99e4
line 27why, one step back27#include "stb_herringbone_wang_tile.h"fix c++ compilationSean Barrettbefore adoption1764701
line 28why, one step back28various fixes for compilation testSean Barrettbefore adoptionb6f8358
lines 29–30why, one step back29#define STBTE_DRAW_RECT(x0,y0,x1,y1,color) do ; while(0)30#define STBTE_DRAW_TILE(x,y,id,highlight,data) do ; while(0)fix c++ compilationSean Barrettbefore adoption1764701
lines 31–32why, one step back31#define STB_TILEMAP_EDITOR_IMPLEMENTATION32#include "stb_tilemap_editor.h"