Skip to content
Myr

test_cpp_compilation.cpp

This file

Path

tests/test_cpp_compilation.cpp

35 lines · 1.1 KiB · C++

Last changed by

voxel render 0.78; compile as C++, fix bad #elseSean Barrettbefore adoptioncd1d05b

History of this file

Take it

fix use of stbrp_coord if no stb_rect_pack;Sean Barrettbefore adoption2643925

line 1why, one step back
1#define STB_TRUETYPE_IMPLEMENTATION

rename test files to be more meaningfulSean Barrettbefore adoption42bd3e2

lines 2–6why, one step back
2#define STB_PERLIN_IMPLEMENTATION
3#define STB_IMAGE_WRITE_IMPLEMENTATION4#define STB_DXT_IMPLEMENATION5#define STB_C_LEXER_IMPLEMENTATIOn6#define STB_DIVIDE_IMPLEMENTATION

Merge branch 'headerify'Sean Barrettbefore adoptionb96edc0

line 7why, one step back
7#define STB_IMAGE_IMPLEMENTATION

initial commitSean Barrettbefore adoption88c99e4

line 8why, one step back
8#define STB_HERRINGBONE_WANG_TILE_IMPLEMENTATION

various fixes for compilation testSean Barrettbefore adoptionb6f8358

line 9why, one step back
9#define STB_RECT_PACK_IMPLEMENTATION

voxel render 0.78; compile as C++, fix bad #elseSean Barrettbefore adoptioncd1d05b

lines 10–11why, one step back
10#define STB_VOXEL_RENDER_IMPLEMENTATION
11#define STBVOX_CONFIG_MODE 1

rename test files to be more meaningfulSean Barrettbefore adoption42bd3e2

line 12why, one step back
12

STBI_MALLOC etc.Sean Barrettbefore adoptionba5e333

lines 13–20why, one step back
13#define STBI_MALLOC my_malloc
14#define STBI_FREE my_free15#define STBI_REALLOC my_realloc1617void *my_malloc(size_t) { return 0; }18void *my_realloc(void *, size_t) { return 0; }19void my_free(void *) { }20

Fix assert() that should be STBI_ASSERT()Sean Barrettbefore adoptionf547761

line 21why, one step back
21#include "stb_image.h"

fix use of stbrp_coord if no stb_rect_pack;Sean Barrettbefore adoption2643925

line 22why, one step back
22#include "stb_rect_pack.h"

rename test files to be more meaningfulSean Barrettbefore adoption42bd3e2

lines 23–28why, one step back
23#include "stb_truetype.h"
24#include "stb_image_write.h"25#include "stb_perlin.h"26#include "stb_dxt.h"27#include "stb_c_lexer.h"28#include "stb_divide.h"

initial commitSean Barrettbefore adoption88c99e4

line 29why, one step back
29#include "stb_herringbone_wang_tile.h"

voxel render 0.78; compile as C++, fix bad #elseSean Barrettbefore adoptioncd1d05b

line 30why, one step back
30#include "stb_voxel_render.h"

fix c++ compilationSean Barrettbefore adoption1764701

line 31why, one step back
31

various fixes for compilation testSean Barrettbefore adoptionb6f8358

lines 32–33why, one step back
32#define STBTE_DRAW_RECT(x0,y0,x1,y1,color) do ; while(0)
33#define STBTE_DRAW_TILE(x,y,id,highlight,data) do ; while(0)

fix c++ compilationSean Barrettbefore adoption1764701

lines 34–35why, one step back
34#define STB_TILEMAP_EDITOR_IMPLEMENTATION
35#include "stb_tilemap_editor.h"