refactor: UNITS_UDLS renamed to UNITS_LITERALS

Also now the existence of the preprocessor flag is enough to trigger the feature (`#ifdef` instead of `#if`)
This commit is contained in:
Mateusz Pusz
2021-04-06 13:33:27 +02:00
parent a954f5d924
commit c3659dbb47
92 changed files with 181 additions and 185 deletions
@@ -25,7 +25,7 @@ cmake_minimum_required(VERSION 3.2)
function(add_example target)
add_executable(${target}_alt ${target}.cpp)
target_link_libraries(${target}_alt PRIVATE mp-units::mp-units)
target_compile_definitions(${target}_alt PRIVATE UNITS_UDLS=1)
target_compile_definitions(${target}_alt PRIVATE UNITS_LITERALS)
endfunction()
add_example(box_example mp-units::si)
+1 -1
View File
@@ -20,7 +20,7 @@
// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
// SOFTWARE.
#define UNITS_UDLS 1
#define UNITS_LITERALS
#include <units/format.h>
#include <units/isq/si/international/length.h>