3d3bc74884
Cleanup: remove redundant const qualifiers for POD types
...
MSVC used to warn about const mismatch for arguments passed by value.
Remove these as newer versions of MSVC no longer show this warning.
2022-01-07 14:16:26 +11:00
fdb2167b4a
Docs: use doxygen formatting for BLI
...
Differentiate doc-strings from title/section text.
2021-12-20 19:07:10 +11:00
fea1026bb8
Cleanup: use 'pragma once'
...
Add explanations for cases the header-guard defines are still used.
2021-01-04 17:38:11 +11:00
96e2bd8493
Cleanup: Fix forward declaration of headers
2020-03-06 17:26:32 +01:00
cf93b65a65
Cleanup: make remaining blenlib headers work in C++
...
Differential Revision: https://developer.blender.org/D6988
Reviewers: brecht
2020-03-02 15:05:15 +01:00
e12c08e8d1
ClangFormat: apply to source, most of intern
...
Apply clang format as proposed in T53211.
For details on usage and instructions for migrating branches
without conflicts, see:
https://wiki.blender.org/wiki/Tools/ClangFormat
2019-04-17 06:21:24 +02:00
de13d0a80c
doxygen: add newline after \file
...
While \file doesn't need an argument, it can't have another doxy
command after it.
2019-02-18 08:22:12 +11:00
eef4077f18
Cleanup: remove redundant doxygen \file argument
...
Move \ingroup onto same line to be more compact and
make it clear the file is in the group.
2019-02-06 15:45:22 +11:00
65ec7ec524
Cleanup: remove redundant, invalid info from headers
...
BF-admins agree to remove header information that isn't useful,
to reduce noise.
- BEGIN/END license blocks
Developers should add non license comments as separate comment blocks.
No need for separator text.
- Contributors
This is often invalid, outdated or misleading
especially when splitting files.
It's more useful to git-blame to find out who has developed the code.
See P901 for script to perform these edits.
2019-02-02 01:36:28 +11:00
35b61a7512
Move GCC attributes into a centraized defines
...
Instead of having ifdef __GNUC__ all over the headers
to use special compiler's hints use a special file where
all things like this are concentrated.
Makes code easier to follow and allows to manage special
attributes in more efficient way.
Thanks Campbell for review!
2013-09-01 15:01:15 +00:00
42dc0dc5ef
Fix #33226 : error loading .blend files with different endian on Mac. The cause
...
was wrong inline and pure attributes on the endian switch function.
2012-11-26 20:37:04 +00:00
01d78854dc
Fix compilation for non GCC compilers
...
Was simple copy pase error.
2012-09-17 10:18:28 +00:00
7ecc9951a9
add endian switching to mask shape key loading (loading mask animations between big/little endian systems would break), also set attributes to BLI_endian_switch_* functions.
2012-09-17 05:31:41 +00:00
b8b5bf7dcd
array functions for endian switching.
2012-09-03 09:03:25 +00:00
d248f94cf8
add endian switch functions to replace macros SWITCH_INT/LONG/SHORT, with BLI_endian_switch_int32/int64/float/double...
2012-09-03 07:37:38 +00:00