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
diff options
context:
space:
mode:
authorJulian Eisel <julian@blender.org>2022-04-26 16:13:58 +0300
committerJulian Eisel <julian@blender.org>2022-04-26 16:47:19 +0300
commit5c5ec837b3a565da8647444b807091a78df40fd9 (patch)
tree26dc541d2b7e5e40f467ab6dd57e279800330990 /source/blender/blenlib/BLI_rect.h
parent96bdd65e740e669eceb18258dbc4b27d268d10aa (diff)
Utils: Add macro for C++ default arguments in C headers
This macro allows defining a default argument for when the translation unit is compiled in C++. Otherwise (in C), the argument has to be passed explicitly. A couple of benefits: * Default arguments are a nice quality-of-life feature in C++. It's annoying if these can't be used in C++ files, just because the header with the function declaration still needs to be C compatible. * Adds useful information to the API declaration. E.g. that an argument can be nullptr. * Should help us to move to using default arguments more, helping readability (arguably) Used in D14653. Reviewed By: LazyDodo Differential Revision: https://developer.blender.org/D14654
Diffstat (limited to 'source/blender/blenlib/BLI_rect.h')
0 files changed, 0 insertions, 0 deletions