summaryrefslogtreecommitdiffstats
path: root/skeletons/main.h.erb
diff options
context:
space:
mode:
Diffstat (limited to 'skeletons/main.h.erb')
-rw-r--r--skeletons/main.h.erb26
1 files changed, 26 insertions, 0 deletions
diff --git a/skeletons/main.h.erb b/skeletons/main.h.erb
new file mode 100644
index 0000000..3f0baf7
--- /dev/null
+++ b/skeletons/main.h.erb
@@ -0,0 +1,26 @@
+<%= header 'c.hdr' %>
+
+
+#ifndef _MAIN_
+#define _MAIN_ 1
+
+# ifdef __cplusplus
+extern "C" {
+# endif /* __cplusplus */
+
+#define VERSION "version"
+#define PACKAGE_NAME "package_name"
+
+#ifdef HAVE_CONFIG_H
+ #include "config.h"
+/*
+#else
+ #error "no config.h"
+*/
+#endif
+
+# ifdef __cplusplus
+}
+# endif /* __cplusplus */
+
+# endif /* _MAIN_ */