summaryrefslogtreecommitdiffstats
path: root/old/skeletons/c_header.erb
diff options
context:
space:
mode:
Diffstat (limited to 'old/skeletons/c_header.erb')
-rw-r--r--old/skeletons/c_header.erb20
1 files changed, 20 insertions, 0 deletions
diff --git a/old/skeletons/c_header.erb b/old/skeletons/c_header.erb
new file mode 100644
index 0000000..2ef9092
--- /dev/null
+++ b/old/skeletons/c_header.erb
@@ -0,0 +1,20 @@
+<%= header 'c.hdr' %>
+
+<% define=File.basename( @filename ).upcase!.sub!('.', '_' ) %>
+
+#ifndef _<%= define %>_
+#define _<%= define %>_
+
+#ifdef __cplusplus
+extern "C" {
+#endif /* __cplusplus */
+
+/*
+ * Feed me
+ */
+
+#ifdef __cplusplus
+}
+#endif /* __cplusplus */
+
+#endif /* _<%= define %>_ */