diff options
author | Joe Zhao <ztuowen@gmail.com> | 2015-09-04 08:40:52 -0600 |
---|---|---|
committer | Joe Zhao <ztuowen@gmail.com> | 2015-09-04 08:40:52 -0600 |
commit | 8786ca9366a76c6695a6cb4cb2bcfb32e913d950 (patch) | |
tree | 06f47466120913871f2c2c639ba4d33a5e7b0ff6 /logging.cpp | |
download | pomodori-8786ca9366a76c6695a6cb4cb2bcfb32e913d950.tar.gz pomodori-8786ca9366a76c6695a6cb4cb2bcfb32e913d950.tar.bz2 pomodori-8786ca9366a76c6695a6cb4cb2bcfb32e913d950.zip |
Initial commit
Diffstat (limited to 'logging.cpp')
-rw-r--r-- | logging.cpp | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/logging.cpp b/logging.cpp new file mode 100644 index 0000000..d426978 --- /dev/null +++ b/logging.cpp @@ -0,0 +1,20 @@ +// +// Created by joe on 9/3/15. +// + +#include "logging.h" +#include "stdlib.h" +#include<iostream> +#include <fstream> + +using namespace std; +void log(tres* res,int code) +{ + if (code) + { + ofstream fot; + fot.open("~/.pomodori"); + fot<<1<<endl; + } + exit(0); +}
\ No newline at end of file |