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 fileTake it
1#define STB_TRUETYPE_IMPLEMENTATION2#define STB_PERLIN_IMPLEMENTATION3#define STB_IMAGE_WRITE_IMPLEMENTATION4#define STB_DXT_IMPLEMENATION5#define STB_C_LEXER_IMPLEMENTATIOn6#define STB_DIVIDE_IMPLEMENTATION7#define STB_IMAGE_IMPLEMENTATION8#define STB_HERRINGBONE_WANG_TILE_IMPLEMENTATION9#define STB_RECT_PACK_IMPLEMENTATION10#define STB_VOXEL_RENDER_IMPLEMENTATION11#define STBVOX_CONFIG_MODE 11213#define STBI_MALLOC my_malloc14#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 *) { }2021#include "stb_image.h"22#include "stb_rect_pack.h"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"29#include "stb_herringbone_wang_tile.h"30#include "stb_voxel_render.h"3132#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)34#define STB_TILEMAP_EDITOR_IMPLEMENTATION35#include "stb_tilemap_editor.h"