1 
2 /**
3  Only exists to test the module reflection functionality
4  Contains functions with types that the spreadsheet knows about
5  */
6 
7 module test.xl_funcs;
8 
9 version(unittest):
10 
11 import xlld.from;
12 
13 import xlld.sdk.xlcall;
14 import xlld.wrap.worksheet;
15 import xlld.wrap.traits: Async;
16 
17 extern(Windows) double FuncMulByTwo(double n) nothrow {
18     return n * 2;
19 }
20 
21 extern(Windows) double FuncFP12(FP12* cells) nothrow {
22     return 0;
23 }
24 
25 
26 extern(Windows) from!"xlld.sdk.xlcall".LPXLOPER12 FuncFib (from!"xlld.sdk.xlcall".LPXLOPER12 n) nothrow {
27     return null;
28 }
29 
30 @Async
31 extern(Windows) void FuncAsync(from!"xlld.sdk.xlcall".LPXLOPER12 n,
32                                from!"xlld.sdk.xlcall".LPXLOPER12 asyncHandle)
33     nothrow
34 {
35 
36 }