-
Notifications
You must be signed in to change notification settings - Fork 16
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #265 from symmetryinvestments/fix_excel
fix autowrap excel and update to recent excel-d
- Loading branch information
Showing
2 changed files
with
35 additions
and
34 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,33 +1,33 @@ | ||
module autowrap.excel; | ||
|
||
|
||
public import autowrap.types: Modules, Module, isModule, | ||
LibraryName, PreModuleInitCode, PostModuleInitCode, RootNamespace; | ||
|
||
|
||
string wrapDlang( | ||
autowrap.types.LibraryName libraryName, | ||
Modules modules, | ||
RootNamespace _ = RootNamespace(), // ignored in this backend | ||
PreModuleInitCode preModuleInitCode = PreModuleInitCode(), // ignored in this backend | ||
PostModuleInitCode postModuleInitCode = PostModuleInitCode(), // ignored in this backend | ||
)() | ||
@safe pure | ||
{ | ||
import std.algorithm: map; | ||
import std.array: join; | ||
|
||
mixin(`return wrapAll!(`, modules.value.map!(a => `"` ~ a.name ~ `"`).join(`, `), `;`); | ||
} | ||
|
||
|
||
string wrapAll(Modules...)(in string mainModule = __MODULE__) { | ||
if(!__ctfe) return ""; | ||
|
||
import xlld: wrapAll_ = wrapAll; | ||
import std.typecons: Yes; | ||
|
||
return | ||
"import xlld;\n" ~ | ||
wrapAll_!Modules(Yes.onlyExports, mainModule); | ||
} | ||
module autowrap.excel; | ||
|
||
|
||
public import autowrap.types: Modules, Module, isModule, | ||
LibraryName, PreModuleInitCode, PostModuleInitCode, RootNamespace; | ||
|
||
|
||
string wrapDlang( | ||
autowrap.types.LibraryName libraryName, | ||
Modules modules, | ||
RootNamespace _ = RootNamespace(), // ignored in this backend | ||
PreModuleInitCode preModuleInitCode = PreModuleInitCode(), // ignored in this backend | ||
PostModuleInitCode postModuleInitCode = PostModuleInitCode(), // ignored in this backend | ||
)() | ||
@safe pure | ||
{ | ||
import std.algorithm: map; | ||
import std.array: join; | ||
|
||
mixin(`return wrapAll!(`, modules.value.map!(a => `"` ~ a.name ~ `"`).join(`, `), `;`); | ||
} | ||
|
||
|
||
string wrapAll(Modules...)(in string mainModule = __MODULE__) { | ||
if(!__ctfe) return ""; | ||
|
||
import xlld: wrapAll_ = wrapAll; | ||
import std.typecons: Yes; | ||
|
||
return | ||
"import xlld;\n" ~ | ||
wrapAll_!Modules(Yes.onlyExports, Yes.pascalCase, mainModule); | ||
} |