added version to test cetodo.d as a runnable module

This commit is contained in:
Basile Burg 2015-11-03 05:37:56 +01:00
parent 2c2fd1347c
commit a9b6cb65e2
1 changed files with 9 additions and 2 deletions

View File

@ -125,6 +125,13 @@ void main(string[] args)
Appender!string lfmApp;
TodoItems todoItems;
// helper to test in Coedit with Compile file & run.
version(runnable_module)
{
if (!files.length)
files ~= __FILE__;
}
foreach(f; files)
{
if (!f.exists) continue;
@ -242,7 +249,7 @@ void main(string[] args)
// samples for testing the program as a runnable ('Compile and run file ...') with '<CFF>'
// fixme-p8: èuèuuè``u`èuùè
// fixme-p8: èuèuuè``u`èuùè é ^ç
// fixme-p8: fixme also handled
// TODO-cINVALID_because_no_content:
////TODO:set this property as const() to set it read only.