Commit Graph

5 Commits

Author SHA1 Message Date
Bastien Montagne
6ca6d29e6b Fix memleaks in our gtests. 2015-12-28 23:19:24 +01:00
Campbell Barton
6fbb580e51 BLI_stack: gtest for clear 2015-06-03 18:09:12 +10:00
Campbell Barton
a4c3b92294 BLI_Stack add BLI_stack_peek, BLI_stack_discard
also remove own incorrect assert
2014-09-28 15:08:54 +10:00
Campbell Barton
5c4180d898 BLI_stack: various small additions
- add BLI_stack_count
- add BLI_stack_pop_n to pop into an array
- add BLI_stack_push_r, which returns a pointer that can be filled in

Also remove sanity check in BLI_stack_pop, assert if the stack is empty.
2014-07-15 21:09:03 +10:00
Campbell Barton
228361973d Add BLI_stack test 2014-06-30 11:55:01 +10:00