Blender Git Commit Log

Git Commits -> Revision f9a4f8a

Revision f9a4f8a by Bastien Montagne (master)
January 12, 2015, 13:37 (GMT)
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.

Commit Details:

Full Hash: f9a4f8ada426c4f165d57decd398a4ddb6678966
Parent Commit: e8730af
Lines Changed: +16, -16

1 Modified Path:

/source/blender/blenlib/BLI_linklist_stack.h (+16, -16) (Diff)
By: Miika HämäläinenLast update: Nov-07-2014 14:18MiikaHweb | 2003-2021