Brett 2024-06-29 23:18:32 -04:00
parent 114a04500a
commit 7778efce5c
2 changed files with 4 additions and 1 deletions

View File

@ -1,7 +1,7 @@
cmake_minimum_required(VERSION 3.20) cmake_minimum_required(VERSION 3.20)
include(cmake/color.cmake) include(cmake/color.cmake)
set(BLT_VERSION 0.17.22) set(BLT_VERSION 0.17.23)
set(BLT_TEST_VERSION 0.0.1) set(BLT_TEST_VERSION 0.0.1)
set(BLT_TARGET BLT) set(BLT_TARGET BLT)

View File

@ -97,6 +97,9 @@ namespace blt
/** /**
* means that the return value is solely a function of the arguments, * means that the return value is solely a function of the arguments,
* and if any of the arguments are pointers, then the pointers must not be dereferenced. * and if any of the arguments are pointers, then the pointers must not be dereferenced.
* Calls to functions whose return value is not affected by changes to the observable state of the program
* and that have no observable effects on such state other than
* to return a value may lend themselves to optimizations such as common subexpression elimination.
*/ */
#define BLT_ATTRIB_NO_SIDE_EFFECTS __attribute__((const)) #define BLT_ATTRIB_NO_SIDE_EFFECTS __attribute__((const))
/** /**