diff options
author | Dan Goodliffe <dan@randomdan.homeip.net> | 2016-01-03 20:59:07 +0000 |
---|---|---|
committer | Dan Goodliffe <dan@randomdan.homeip.net> | 2016-01-03 21:02:25 +0000 |
commit | a7a4c2a772a4709026293b3c951d1d6174df71c9 (patch) | |
tree | 8616d180600df4fd765bce67e5cb23191e197f66 /icetray/embed.sql.cpp.m4 | |
parent | Remove rogue source file (diff) | |
download | icetray-a7a4c2a772a4709026293b3c951d1d6174df71c9.tar.bz2 icetray-a7a4c2a772a4709026293b3c951d1d6174df71c9.tar.xz icetray-a7a4c2a772a4709026293b3c951d1d6174df71c9.zip |
Big tidy-up and add tools for building services
Diffstat (limited to 'icetray/embed.sql.cpp.m4')
-rw-r--r-- | icetray/embed.sql.cpp.m4 | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/icetray/embed.sql.cpp.m4 b/icetray/embed.sql.cpp.m4 new file mode 100644 index 0000000..7043f78 --- /dev/null +++ b/icetray/embed.sql.cpp.m4 @@ -0,0 +1,7 @@ +changecom(`@@') +#include "NAME.sql.h" + +const std::string NAMESPACE::NAME::sql({ +patsubst(esyscmd(`xxd -p -c 12 ' SQL), `\(..\)', `0x\1, ')0x00}); +const std::size_t NAMESPACE::NAME::hash(std::hash<std::string>()(sql)); + |