Age | Commit message (Collapse) | Author | |
---|---|---|---|
2018-05-14 | Cleanup: quiet GCC -Wtype-limits | Campbell Barton | |
While the warning can normally be disabled, we don't have have as much control of warnings when macros are used. | |||
2018-05-14 | BLI_utildefines: re-ordering array delete macro | Campbell Barton | |
2018-05-07 | Cleanup: move unit char/short/float to functions | Campbell Barton | |
This caused GCC 8.1 to crash at build time, but was also not very nice use of macros. | |||
2018-04-02 | Build: fixes for the Intel compiler versions 2016, 2017, 2018. | Milan Jaros | |
Differential Revision: https://developer.blender.org/D3109 | |||
2018-03-15 | BLI_assert: extract from BLI_utildefines | Campbell Barton | |
BLI_utildefines is quite large, defining many unrelated things. Add BLI_assert to include in inline headers, so math defines don't pull in too much. | |||
2017-11-23 | Add non-gcc variant of static assert macro. | Bastien Montagne | |
Adapted from http://www.pixelbeat.org/programming/gcc/static_assert.html. Note that this macro just discards error message, so error when building is much less nice than with gcc's _Static_assert... But error log will point to right place in code, so should still be OK. | |||
2017-11-23 | Revert "BLI_utildefines: Support SWAP macro with two args" | Campbell Barton | |
This reverts commit d749320e3b10161430bc4cb7dd92edb63712bf8c. It's possible the container struct is larger, we could do sizeof checks that falls back to memmove but rather avoid complicating things. | |||
2017-11-22 | BLI_utildefines: Support SWAP macro with two args | Campbell Barton | |
2017-11-19 | Cleanup: remove BKE_utildefines | Campbell Barton | |
This was meant to be used for less general macros but was never used. Rename BKE_BIT_TEST_SET to SET_FLAG_FROM_TEST | |||
2017-11-15 | BLI_utildefines: sync w/ 2.8 | Campbell Barton | |
2017-11-14 | BLI: sync changes from 2.8 | Campbell Barton | |
2017-09-19 | Cleanup: BLI_utildefines prefix for header-only libs | Campbell Barton | |
This allows to have different macro headers without them sharing similar names to regular C modules. | |||
2017-08-23 | Cleanup: move variadic defines to their own header | Campbell Barton | |
So we can use in headers without pulling in many other defines. | |||
2016-08-16 | Fix release build after recent fix for debug one | Sergey Sharybin | |
It's becoming annoying to have public API dependent on build type and everything. Let's just always have API defined and do stubs in the function implementation instead. | |||
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 |