root/trunk/infrastructure/d/pydmain_template.d

Revision 64, 260 bytes (checked in by KirkMcDonald, 2 years ago)

PydMain?; build improvements (no more colliding object files); examples and docs updated to use PydMain?

Line 
1 import pyd.def;
2 import pyd.exception;
3
4 extern(C) void PydMain();
5
6 extern(C)
7 export void init%(modulename)s() {
8     pyd.exception.exception_catcher(delegate void() {
9         pyd.def.pyd_module_name = "%(modulename)s";
10         PydMain();
11     });
12 }
Note: See TracBrowser for help on using the browser.