Skip to content
Myr

stb_ds: add documentation for STBDS_UNIT_TESTS, -std=c++0x

Before adoption: this commit came in with the history the project adopted, so no landing records it.

authored by Sean Barrett · committed by Sean Barrett · parent c7343d4 · Browse files · 1 file+9 added−1 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

1 file+9 added−1 removed

  • other:+9 added−1 removed

1 file+9 added−1 removed

modified:stb_ds.h+9 added-1 removed
1/* stb_ds.h - v0.61 - public domain data structures - Sean Barrett 20191/* stb_ds.h - v0.62 - public domain data structures - Sean Barrett 20192 3 This is a single-header-file library that provides easy-to-use4 dynamic arrays and hash tables for C (also works in C++).5
44 unmodified lines
50 substitute your own functions instead by defining these symbols. You must either51 define both, or neither. Note that at the moment, 'context' will always be NULL.52 @TODO add an array/hash initialization function that takes a memory context pointer.5354 #define STBDS_UNIT_TESTS5556 Defines a function stbds_unit_tests() that checks the functioning of the data structures.5758 Note that on older versions of gcc (e.g. 5.x.x) you may need to build with '-std=c++0x'59 (or equivalentally '-std=c++11') when using anonymous structures as seen on the web60 page or in STBDS_UNIT_TESTS.6162LICENSE6364 Placed in the public domain and also MIT licensed.65 See end of file for detailed license information.
1639 unmodified lines