exLibC.cpp (317B)
1 #include <stdio.h> 2 #include <stdlib.h> 3 #include <iostream> 4 5 #include <pkg1/exLibC/exLibC.hpp> 6 7 int check_smaller(int value) { 8 const char* foo = u8"bar"; // u8 is C++17 only 9 std::cout << __cplusplus << std::endl; // Check version of C++ standard 10 11 if (value < HELLO_LIMIT) { 12 return 0; 13 } else { 14 return -1; 15 } 16 } 17