1 /**
2  Enables linking on  Windows without having to link to the real implementations
3  Only for unit testing.
4  */
5 module xlld.dummy;
6 
7 version(testingExcelD)
8     enum useDummy = true;
9 else version(exceldDef)
10     enum useDummy = true;
11 else
12     enum useDummy = false;
13 
14 version(Windows):
15 static if(useDummy) {
16 
17     import xlld.sdk.xlcall;
18 
19     extern(System) int Excel4v(int xlfn, LPXLOPER operRes, int count, LPXLOPER* opers) {
20         return 0;
21     }
22 
23     extern(System) int Excel4(int xlfn, LPXLOPER operRes, int count,... ) {
24         return 0;
25     }
26 }