Fix RealToFloat test (hopefully)
[ipdf/code.git] / src / main.cpp
1 #include "main.h"
2 #include <unistd.h> // Because we can.
3 int main(int argc, char ** argv)
4 {       
5         Document doc;
6         srand(time(NULL));
7         if (argc > 1)
8         {
9                 for (int i = 2; i < argc; ++i)
10                 {
11                         if (fork() == 0) doc.Load(argv[i]);
12                 }
13                 doc.Load(argv[1]);
14         }
15         else
16         {
17                 Debug("Add random object");
18                 //doc.Add(RECT_FILLED, Rect(Random()*0.5, Random()*0.5, Random()*0.5, Random()*0.5));
19                 doc.Add(RECT_FILLED, Rect(0.25,0.25, 0.5, 0.5));
20         }
21         MainLoop(doc);
22         return 0;
23 }

UCC git Repository :: git.ucc.asn.au