summaryrefslogtreecommitdiffstats
path: root/skeletons/c_header.erb
diff options
context:
space:
mode:
Diffstat (limited to 'skeletons/c_header.erb')
-rw-r--r--skeletons/c_header.erb20
1 files changed, 20 insertions, 0 deletions
diff --git a/skeletons/c_header.erb b/skeletons/c_header.erb
new file mode 100644
index 0000000..2ef9092
--- /dev/null
+++ b/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 %>_ */