03f00eb91d
Docs: doxy corrections
2015-07-31 23:44:37 +10:00
3acc1ba49c
Add macro BLI_SMALLSTACK_AS_TABLE
...
Use for edge-split (a little less overhead compare to popping each item).
2015-04-29 23:59:48 +10:00
f9a4f8ada4
BLI linkstack macros: do not prepend the 'anti-namespace-collision' to var name.
...
Issue was, in case of using such stack within a structure, the '_' underscore
would be added in front of struct variable
(e.g. `my_struct.my_stack` would lead to (try to) using `_my_struct.my_var_pool` ...).
Now underscore is appended to var names, ugly but working.
Note did not touch to the alloca variants of those macros, since in this case enforcing
a pure local use is best I think.
2015-01-12 14:37:59 +01:00
c04f301fc3
Replace BLI_SMALLSTACK_FREE with fake user (quiet warnings in msvc)
2014-07-12 16:48:52 +10:00
f4484daed3
Correct IS_EMPTY macro
...
also prevent reading from BM_ELEM_API_FLAG_ get/setters
2014-07-09 07:53:43 +10:00
a82d3f85c6
Correct casts for IS_EQ and other macro tweaks
...
- ensure GET_INT_FROM_POINTER us only used to get values
- rename STACK_POP_ELSE -> STACK_POP_DEFAULT
2014-06-18 14:02:41 +10:00
c3a3664e8c
Utility macros for linklist stack & asserts for bmesh
2014-05-10 09:29:34 +10:00
ad9af56a6e
LinkList stack macros to swap and pop into a separate stack.
2014-04-13 20:12:07 +10:00
412826a504
Mempool: delay allocating an initial chunk, its not always used
2014-04-08 12:58:56 +10:00
af59ee340f
Mempool: remove BLI_MEMPOOL_SYSMALLOC, MEM_* allocs are more efficient now
2014-04-05 12:14:05 +11:00
a9b97dcf22
User interface: internal change, collect panels to draw before drawing.
...
avoids calling poll twice, in some cases
2013-12-04 11:57:19 +11:00
590f58d455
code cleanup: redundant includes and add minor comments.
2013-10-08 20:18:38 +00:00
773ea29b4a
Possible fix for MSVC compiling (grr...).
2013-09-10 15:41:01 +00:00
73be170fb5
add BLI_SMALLSTACK_***, macros: stack doesn't have a fixed size, it uses stack memory and never allocates.
...
it can be added and removed many times per function but will always remain the size of the maximum number of items.
not used yet, added for normal calculation function from mont29.
2013-09-10 11:04:20 +00:00
b8547074e1
mempool internal change, use unsigned ints where possible (less overhead),
...
also quiet compiler warning for BLI_LINKSTACK_FREE macro.
2013-08-30 21:32:57 +00:00
d7cc2be2b7
add linklist stack macros, use where over allocating an array was previously done.
2013-08-17 05:33:55 +00:00