Age | Commit message (Collapse) | Author | |
---|---|---|---|
2016-02-03 | Cleanup: parenthesize macros | Campbell Barton | |
2016-01-25 | ImBuf: Make luminance calculation inlined | Sergey Sharybin | |
Title actually tells it all, it is rather simple function which totally makes sense to be inlined. This gives up to 5% of speedup when updating scopes for a large image. Reviewers: campbellbarton Differential Revision: https://developer.blender.org/D1310 | |||
2015-10-20 | BLI: add new 'memory_utils' module with func checking a whole memory chunk ↵ | Bastien Montagne | |
is filled of zero, and an helper to ensure all memory of a given structure passed a given member is filled of zero. | |||
2015-10-10 | Fix various compiler warnings. | Brecht Van Lommel | |
2015-07-24 | parenthisize macro args to avoid errors | Campbell Barton | |
2015-04-28 | disable ARRAY_SIZE fixed length check for Clang | Campbell Barton | |
2015-04-28 | BLI_utildefines: add MEMSET_STRUCT_OFS macro | Campbell Barton | |
2015-03-20 | Fix stupid strict flags in math_color_inline.c | Sergey Sharybin | |
It was unleashed with recent ghash commit and issue seems to be the same as fixed in 69065b5b. | |||
2015-02-23 | BLI_utildefines: correct comment | Campbell Barton | |
2015-02-23 | BLI_utildefines: add pointer offset macro | Campbell Barton | |
Handy since it keeps the type of the original. | |||
2015-02-18 | Fix Windows build. | Bastien Montagne | |
Mighty M$VC never heard of 'strcasecmp' family of functions, it prefers its own names, as usual... | |||
2015-02-14 | cleanup: doxy comments | Campbell Barton | |
2015-02-12 | Fix for previous commit - since it's for non-debug unused vars, name it ↵ | Bastien Montagne | |
UNUSED_VARS_NDEBUG. This commit was proudly crafted by the Commit Rate Raising Committee! | |||
2015-02-12 | Add new UNUSED_VARS_DEBUG utils, which is NOP in debug build, but tags given ↵ | Bastien Montagne | |
vars as unused in non-debug builds. Helps handling cleanly pure-debug variables. | |||
2015-01-13 | Cleanup: fixes for building with recent clang | Campbell Barton | |
2015-01-06 | PyAPI: add utilities PyTuple_SET_ITEMS, Py_INCREF_RET | Campbell Barton | |
Setting all values of a tuple is such a common operation that it deserves its own macro. Also added Py_INCREF_RET to avoid confusing use of comma operator. | |||
2014-12-08 | BMesh: ensure iterator macros assign to valid types | Campbell Barton | |
note, this is for C++ code which expects a cast, (will be added later) also add a macro for nop-expressions (EXPR_NOP), when we never want an expression to be evaluated, but it should still be valid. | |||
2014-11-24 | BLI_utildefines: add UNUSED_VARS() macro | Campbell Barton | |
2014-11-18 | correct another problem with BLI_assert | Campbell Barton | |
need to use extern C for C++ | |||
2014-11-18 | BLI_assert: print a backtrace with the error | Campbell Barton | |
Add BLI_system_backtrace() | |||
2014-11-16 | Macros: ELEM() can now take 2 args | Campbell Barton | |
Handy when used indirectly. | |||
2014-11-04 | Add utility macros to clamp all elements of 2,3,4 component vectors | Sergey Sharybin | |
2014-10-13 | BLI_utildefines: add SQUARE macro | Campbell Barton | |
also minor cleanup | |||
2014-09-25 | Move typecheck macros into own header | Campbell Barton | |
2014-09-23 | Macro VA_NARGS, increase max to 64 | Campbell Barton | |
2014-08-05 | Macros: replace UNPACK#OP -> UNPACK#_EX, allow suffix | Campbell Barton | |
2014-08-04 | Tweaks to macros | Campbell Barton | |
2014-08-04 | Macros: prevent instantiation of args for type checks | Campbell Barton | |
also make CHECK_TYPE_INLINE more strict | |||
2014-08-02 | Make CHECK_TYPE_NONCONST macro portable | Campbell Barton | |
also replace __typeof -> typeof | |||
2014-08-01 | Prevent macros hiding casts from `const` pointers | Campbell Barton | |
2014-07-19 | Defines: replace ELEM3-16 with ELEM(...), that can take varargs | Campbell Barton | |
2014-07-19 | Cleanup: Use more logically constructed ELEM macros | Campbell Barton | |
- name primary comparison var 'v' - names remain same when expanded - no odd mixing of macros, use prev ELEM + extra arg - use 16, even if not used yet, saves adding more in future | |||
2014-06-24 | move STACK_* macros into BLI_stackdefines.h | Campbell Barton | |
2014-06-24 | Add MEMCPY_STRUCT_OFS macro for copying values after a struct member | Campbell Barton | |
use for DM_to_mesh to avoid clobbering the ListBase | |||
2014-06-24 | add STACK_REMOVE macro | Campbell Barton | |
2014-06-18 | Correct casts for IS_EQ and other macro tweaks | Campbell Barton | |
- ensure GET_INT_FROM_POINTER us only used to get values - rename STACK_POP_ELSE -> STACK_POP_DEFAULT | |||
2014-06-13 | Resolve MSVC error | Campbell Barton | |
2014-06-13 | Code cleanup: remove redundant arg from ARRAY_LAST_ITEM | Campbell Barton | |
2014-05-19 | Correct ARRAY_SIZE macro and make doxy comments consistent | Campbell Barton | |
2014-05-18 | Add ARRAY_SIZE macro to check fixed size arrays | Campbell Barton | |
2014-05-11 | Code cleanup: comment typos | Campbell Barton | |
2014-05-01 | Add BLI_compiler_compat.h to help with portability | Campbell Barton | |
2014-04-13 | Code cleanup: quiet warnings & style | Campbell Barton | |
2014-03-30 | Correct own recent changes broke release builds | Campbell Barton | |
2014-03-30 | Enable GCC pedantic warnings with strict flags, | Campbell Barton | |
also modify MIN/MAX macros to prevent shadowing. | |||
2014-03-28 | BMesh: optimize quad_coord, avoid duplicate sqrt calls | Campbell Barton | |
2014-02-28 | Revert own changes to CLAMP and CLAMPIS, caused T38875 | Campbell Barton | |
2013-12-08 | Util-defines: avoid multiple calculation/access for MIN/MAX macros | Campbell Barton | |
2013-12-07 | Util Macros: reduce multiple access & conversion for CLAMP/CLAMPIS/ABS | Campbell Barton | |
2013-12-07 | Compiler warnings: quiet warnings for gcc4.7x | Campbell Barton | |
patch from Sergey |