Re-add minwin gtk example
This commit is contained in:
parent
bd19bcacf4
commit
5967eacdf0
52 changed files with 35078 additions and 0 deletions
19
samples/minwin_gtk/minwin/logging.d
Normal file
19
samples/minwin_gtk/minwin/logging.d
Normal file
|
@ -0,0 +1,19 @@
|
|||
module minwin.logging;
|
||||
|
||||
public import std.stream;
|
||||
|
||||
//version=StdOutLog;
|
||||
|
||||
version (LOG) {
|
||||
Stream log;
|
||||
version (StdOutLog) {
|
||||
static this() {
|
||||
log = stdout;
|
||||
}
|
||||
} else {
|
||||
static this() {
|
||||
log = new BufferedFile("log.txt",FileMode.OutNew);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
Add table
Add a link
Reference in a new issue