aboutsummaryrefslogtreecommitdiffhomepage
path: root/org/sdp.org
diff options
context:
space:
mode:
Diffstat (limited to 'org/sdp.org')
-rw-r--r--org/sdp.org21
1 files changed, 21 insertions, 0 deletions
diff --git a/org/sdp.org b/org/sdp.org
index 63557ed..5eb1364 100644
--- a/org/sdp.org
+++ b/org/sdp.org
@@ -17,6 +17,8 @@
[[../maker.org][maker.org makefile]] [[./][org/]]
* 0. version.txt (set version) :version:
+** set program version
+
#+NAME: version_txt
#+BEGIN_SRC d :tangle ../views/version.txt
/+ obt - org generated file +/
@@ -28,6 +30,25 @@ struct Version {
enum ver = Version(0, 18, 0);
#+END_SRC
+#+NAME: version_txt
+
+** compilation restrictions (supported compilers)
+
+http://dlang.org/spec/version.html#predefined-versions
+
+#+BEGIN_SRC d :tangle ../views/version.txt
+version (Posix) {
+ version (DigitalMars) {
+ } else version (LDC) {
+ } else version (GNU) {
+ } else {
+ static assert (0, "Unsupported D compiler");
+ }
+} else {
+ static assert (0, "Unsupported D compiler");
+}
+#+END_SRC
+
* 1. sdp (sisu document parser) :sdp:
- deal with imports