mirror of
https://github.com/xomboverlord/ldc.git
synced 2026-09-28 08:10:18 +02:00
[svn r120] ModuleInfo implementation is now almost complete.
Fixed some nasty static array-initializer bugs. Fixed bug in DtoArrayLen and DtoArrayPtr for full slices of static arrays.
This commit is contained in:
@@ -18,29 +18,8 @@ enum
|
||||
// ctors being done first
|
||||
}
|
||||
|
||||
/***********************
|
||||
* Information about each module.
|
||||
*/
|
||||
class ModuleInfo
|
||||
{
|
||||
char[] name;
|
||||
ModuleInfo[] importedModules;
|
||||
ClassInfo[] localClasses;
|
||||
|
||||
uint flags; // initialization state
|
||||
|
||||
void function() ctor;
|
||||
void function() dtor;
|
||||
void function() unitTest;
|
||||
|
||||
/******************
|
||||
* Return collection of all modules in the program.
|
||||
*/
|
||||
static ModuleInfo[] modules()
|
||||
{
|
||||
return _moduleinfo_array;
|
||||
}
|
||||
}
|
||||
// had to move the class to object.d, as its declaration is needed in the compiler code,
|
||||
// otherwise the DMDFE Module::moduleinfo member is NULL
|
||||
|
||||
class ModuleCtorError : Exception
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user