2014-12-10 11:27:11 +03:00
|
|
|
// check that stb_truetype compiles with no stb_rect_pack.h
|
|
|
|
#define STB_TRUETYPE_IMPLEMENTATION
|
|
|
|
#include "stb_truetype.h"
|
|
|
|
|
2021-04-01 11:53:09 +03:00
|
|
|
#define STB_DS_IMPLEMENTATION
|
|
|
|
#include "stb_ds.h"
|
2014-06-01 19:01:01 +04:00
|
|
|
#include <assert.h>
|
|
|
|
|
|
|
|
int main(int arg, char **argv)
|
|
|
|
{
|
|
|
|
int i;
|
|
|
|
int *arr = NULL;
|
|
|
|
|
|
|
|
for (i=0; i < 1000000; ++i)
|
2021-04-01 11:53:09 +03:00
|
|
|
arrput(arr, i);
|
2014-06-01 19:01:01 +04:00
|
|
|
|
2021-04-01 11:53:09 +03:00
|
|
|
assert(arrlen(arr) == 1000000);
|
2014-06-01 19:01:01 +04:00
|
|
|
for (i=0; i < 1000000; ++i)
|
|
|
|
assert(arr[i] == i);
|
|
|
|
|
2021-04-01 11:53:09 +03:00
|
|
|
arrfree(arr);
|
2014-06-01 19:01:01 +04:00
|
|
|
arr = NULL;
|
|
|
|
|
|
|
|
for (i=0; i < 1000; ++i)
|
2021-04-01 11:53:09 +03:00
|
|
|
arrput(arr, 1000);
|
|
|
|
assert(arrlen(arr) == 1000000);
|
2014-06-01 19:01:01 +04:00
|
|
|
|
|
|
|
return 0;
|
|
|
|
}
|