Skip to content
Browse files

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

  • Loading branch information...
Sean Barrett
Sean Barrett committed Aug 12, 2019
1 parent c7343d4 commit bcb2815ab394486b1d735eb228fb1dbdf407436b
Showing with 9 additions and 1 deletion.
  1. +9 −1 stb_ds.h
@@ -1,4 +1,4 @@
/* stb_ds.h - v0.61 - public domain data structures - Sean Barrett 2019
/* stb_ds.h - v0.62 - public domain data structures - Sean Barrett 2019
This is a single-header-file library that provides easy-to-use
dynamic arrays and hash tables for C (also works in C++).
@@ -51,6 +51,14 @@ COMPILE-TIME OPTIONS
define both, or neither. Note that at the moment, 'context' will always be NULL.
@TODO add an array/hash initialization function that takes a memory context pointer.
Defines a function stbds_unit_tests() that checks the functioning of the data structures.
Note that on older versions of gcc (e.g. 5.x.x) you may need to build with '-std=c++0x'
(or equivalentally '-std=c++11') when using anonymous structures as seen on the web
page or in STBDS_UNIT_TESTS.
Placed in the public domain and also MIT licensed.

0 comments on commit bcb2815

Please sign in to comment.
You can’t perform that action at this time.