Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2018-05-14Cleanup: quiet GCC -Wtype-limitsCampbell Barton
While the warning can normally be disabled, we don't have have as much control of warnings when macros are used.
2018-05-14BLI_utildefines: re-ordering array delete macroCampbell Barton
2018-05-07Cleanup: move unit char/short/float to functionsCampbell Barton
This caused GCC 8.1 to crash at build time, but was also not very nice use of macros.
2018-04-02Build: fixes for the Intel compiler versions 2016, 2017, 2018.Milan Jaros
Differential Revision: https://developer.blender.org/D3109
2018-03-15BLI_assert: extract from BLI_utildefinesCampbell 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-23Add 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-23Revert "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-22BLI_utildefines: Support SWAP macro with two argsCampbell Barton
2017-11-19Cleanup: remove BKE_utildefinesCampbell 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-15BLI_utildefines: sync w/ 2.8Campbell Barton
2017-11-14BLI: sync changes from 2.8Campbell Barton
2017-09-19Cleanup: BLI_utildefines prefix for header-only libsCampbell Barton
This allows to have different macro headers without them sharing similar names to regular C modules.
2017-08-23Cleanup: move variadic defines to their own headerCampbell Barton
So we can use in headers without pulling in many other defines.
2016-08-16Fix release build after recent fix for debug oneSergey 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-03Cleanup: parenthesize macrosCampbell Barton
2016-01-25ImBuf: Make luminance calculation inlinedSergey 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-20BLI: 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-10Fix various compiler warnings.Brecht Van Lommel
2015-07-24parenthisize macro args to avoid errorsCampbell Barton
2015-04-28disable ARRAY_SIZE fixed length check for ClangCampbell Barton
2015-04-28BLI_utildefines: add MEMSET_STRUCT_OFS macroCampbell Barton
2015-03-20Fix stupid strict flags in math_color_inline.cSergey Sharybin
It was unleashed with recent ghash commit and issue seems to be the same as fixed in 69065b5b.
2015-02-23BLI_utildefines: correct commentCampbell Barton
2015-02-23BLI_utildefines: add pointer offset macroCampbell Barton
Handy since it keeps the type of the original.
2015-02-18Fix Windows build.Bastien Montagne
Mighty M$VC never heard of 'strcasecmp' family of functions, it prefers its own names, as usual...
2015-02-14cleanup: doxy commentsCampbell Barton
2015-02-12Fix 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-12Add 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-13Cleanup: fixes for building with recent clangCampbell Barton
2015-01-06PyAPI: add utilities PyTuple_SET_ITEMS, Py_INCREF_RETCampbell 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-08BMesh: ensure iterator macros assign to valid typesCampbell 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-24BLI_utildefines: add UNUSED_VARS() macroCampbell Barton
2014-11-18correct another problem with BLI_assertCampbell Barton
need to use extern C for C++
2014-11-18BLI_assert: print a backtrace with the errorCampbell Barton
Add BLI_system_backtrace()
2014-11-16Macros: ELEM() can now take 2 argsCampbell Barton
Handy when used indirectly.
2014-11-04Add utility macros to clamp all elements of 2,3,4 component vectorsSergey Sharybin
2014-10-13BLI_utildefines: add SQUARE macroCampbell Barton
also minor cleanup
2014-09-25Move typecheck macros into own headerCampbell Barton
2014-09-23Macro VA_NARGS, increase max to 64Campbell Barton
2014-08-05Macros: replace UNPACK#OP -> UNPACK#_EX, allow suffixCampbell Barton
2014-08-04Tweaks to macrosCampbell Barton
2014-08-04Macros: prevent instantiation of args for type checksCampbell Barton
also make CHECK_TYPE_INLINE more strict
2014-08-02Make CHECK_TYPE_NONCONST macro portableCampbell Barton
also replace __typeof -> typeof
2014-08-01Prevent macros hiding casts from `const` pointersCampbell Barton
2014-07-19Defines: replace ELEM3-16 with ELEM(...), that can take varargsCampbell Barton
2014-07-19Cleanup: Use more logically constructed ELEM macrosCampbell 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-24move STACK_* macros into BLI_stackdefines.hCampbell Barton
2014-06-24Add MEMCPY_STRUCT_OFS macro for copying values after a struct memberCampbell Barton
use for DM_to_mesh to avoid clobbering the ListBase
2014-06-24add STACK_REMOVE macroCampbell Barton
2014-06-18Correct casts for IS_EQ and other macro tweaksCampbell Barton
- ensure GET_INT_FROM_POINTER us only used to get values - rename STACK_POP_ELSE -> STACK_POP_DEFAULT