various tests and infrastructure fixes

This commit is contained in:
Sean Barrett
2020-02-01 04:21:41 -08:00
parent c440a53d06
commit 4a7a434c2d
7 changed files with 36 additions and 16 deletions

View File

@ -66,7 +66,7 @@ LINK32=link.exe
# PROP Ignore_Export_Lib 0
# PROP Target_Dir ""
# ADD BASE CPP /nologo /W3 /Gm /GX /ZI /Od /D "WIN32" /D "_DEBUG" /D "_CONSOLE" /D "_MBCS" /YX /FD /GZ /c
# ADD CPP /nologo /MTd /W3 /GX /Zi /Od /I ".." /D "WIN32" /D "_DEBUG" /D "_CONSOLE" /D "_MBCS" /D "VORBIS_TEST" /FR /FD /GZ /c
# ADD CPP /nologo /MTd /W3 /GX /Zi /Od /I ".." /D "WIN32" /D "_DEBUG" /D "_CONSOLE" /D "_MBCS" /D "DS_TEST" /FR /FD /GZ /c
# SUBTRACT CPP /YX
# ADD BASE RSC /l 0x409 /d "_DEBUG"
# ADD RSC /l 0x409 /d "_DEBUG"
@ -226,6 +226,10 @@ SOURCE=.\test_image_write.c
# End Source File
# Begin Source File
SOURCE=.\test_packer.c
# End Source File
# Begin Source File
SOURCE=.\test_perlin.c
# End Source File
# Begin Source File

View File

@ -52,6 +52,7 @@ void test_lex(void)
int main(int argc, char **argv)
{
#if 0
char *p;
p = (char*) "abcdefghijklmnopqrstuvwxyz";
c(stb_ischar('c', p), "stb_ischar 1");
@ -73,6 +74,7 @@ int main(int argc, char **argv)
c(stb_ischar('x', p), "stb_ischar f");
c(!stb_ischar('#', p), "stb_ischar g");
c(stb_ischar('X', p), "stb_ischar h");
#endif
test_lex();

View File

@ -28,8 +28,16 @@
#define STBVOX_CONFIG_MODE 1
#include "stb_voxel_render.h"
#define STBTE_DRAW_RECT(x0,y0,x1,y1,color) 0
#define STBTE_DRAW_TILE(x,y,id,highlight,data) 0
void STBTE_DRAW_RECT(int x0, int y0, int x1, int y1, unsigned int color)
{
}
void STBTE_DRAW_TILE(int x0, int y0, unsigned short id, int highlight, float *data)
{
}
#define STB_TILEMAP_EDITOR_IMPLEMENTATION
#include "stb_tilemap_editor.h"

View File

@ -9,12 +9,13 @@
//#define STBDS_INTERNAL_BUCKET_START // don't bother offseting differently within bucket for different hash values
//#define STBDS_FLUSH_CACHE (1u<<20) // do this much memory traffic to flush the cache between some benchmarking measurements
#include <stdio.h>
#define WIN32_LEAN_AND_MEAN
#include <windows.h>
#define STB_DEFINE
#define STB_NO_REGISTRY
#include "../stb.h"
#include <stdio.h>
#endif
#ifdef DS_TEST