From 40ecf548562421d5d1adc611268cf1d59f9f8e84 Mon Sep 17 00:00:00 2001 From: Nicholas O'Connor Date: Wed, 22 Mar 2017 20:13:24 -0700 Subject: [PATCH] beginnings of a cogged version file --- src/version.cpp.cog | 13 +++++++++++++ src/version.hpp | 11 +++++++++++ 2 files changed, 24 insertions(+) create mode 100644 src/version.cpp.cog create mode 100644 src/version.hpp diff --git a/src/version.cpp.cog b/src/version.cpp.cog new file mode 100644 index 0000000..943c5f4 --- /dev/null +++ b/src/version.cpp.cog @@ -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]]] +} diff --git a/src/version.hpp b/src/version.hpp new file mode 100644 index 0000000..fa2579a --- /dev/null +++ b/src/version.hpp @@ -0,0 +1,11 @@ +#ifndef __VERSION_HPP +#define __VERSION_HPP +#pragma once + +namespace cellar { + namespace version { + string short_version(); + } +} + +#endif // __VERSION_HPP