summaryrefslogtreecommitdiffstats
path: root/skeletons/c_header.erb
diff options
context:
space:
mode:
authorJérémy Zurcher <jeremy@asynk.ch>2012-03-26 08:25:27 +0200
committerJérémy Zurcher <jeremy@asynk.ch>2012-03-26 08:25:27 +0200
commit567672be7bef7dcbecf70589dddbe6e193588475 (patch)
treef1d526c7709a5fce2d01c9574583db21c0be2266 /skeletons/c_header.erb
parent1e2061952df01fe87209156062e060fb69e19ed8 (diff)
downloadvim-567672be7bef7dcbecf70589dddbe6e193588475.zip
vim-567672be7bef7dcbecf70589dddbe6e193588475.tar.gz
add skeletons
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 %>_ */