beginnings of a cogged version file

This commit is contained in:
Nicholas O'Connor 2017-03-22 20:13:24 -07:00
parent 4ef22255b0
commit 40ecf54856
2 changed files with 24 additions and 0 deletions

13
src/version.cpp.cog Normal file
View File

@ -0,0 +1,13 @@
// vim: filetype=cpp :
#include "version.hpp"
string cellar::version::short_version() {
/*[[[cog
import cog
print("// I came from the print function!")
cog.outl("return \"dummy cog file!\";")
]]]*/
//[[[end]]]
}

11
src/version.hpp Normal file
View File

@ -0,0 +1,11 @@
#ifndef __VERSION_HPP
#define __VERSION_HPP
#pragma once
namespace cellar {
namespace version {
string short_version();
}
}
#endif // __VERSION_HPP