Skip to content

Compile-time constants for compilation date and time

Notifications You must be signed in to change notification settings

SimpleHacks/UtilHeaders

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

38 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

This repo provides header files that provide utility for C and C++ projects. Each header has its own markdown file:

  • array_size2.h - Provides a type-safe, constexpr compliant macros to get the count of elements in a statically-allocated array. See array_size2.md for more details.
  • compile_date.h - Provides constexpr compliant macros to get integers corresponding to the compilate date / time. See compile_date.md for more details.
  • constexpr_strlen.h - Provides constexpr compliant strlen for string literals via template function constexpr_strlen(). See constexpr_strlen.md for more details.
  • static_eval.h - Provides a method to force a constexpr to be evaluated at compile-time, without polluting the namespace with enums. See static_eval.md for more details.
  • timestamp.h - Provides constexpr compliant macros to get integers and strings corresponding to the last-modified-date of the file being compiled. See timestamp.md for more details.

Enjoy!

About

Compile-time constants for compilation date and time

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published