Safe guard for matrix.h.
More...
Go to the source code of this file.
|
| #define | MATRIX_SAFE_GUARD(_matrix_type, _data_type, _index_type) |
| |
|
#define | MATRIX_SAFE_GUARD_DECLARE(_matrix_type, _data_type, _index_type) static inline bool _matrix_type##_out_range(_matrix_type* m, _index_type row, _index_type col); |
| |
Safe guard for matrix.h.
- Author
- Jacob Lin (hi@ja.nosp@m.cobl.nosp@m.in.co.nosp@m.ol)
- Date
- 2022-10-08
- Copyright
- Copyright (c) 2022 Jacob Lin. Released under the MIT license.
◆ MATRIX_SAFE_GUARD
| #define MATRIX_SAFE_GUARD |
( |
|
_matrix_type, |
|
|
|
_data_type, |
|
|
|
_index_type |
|
) |
| |
Value: static inline bool _matrix_type##_out_range(_matrix_type* m, _index_type row, \
_index_type col) { \
return false; \
}