{
{
int size = _class->structSize;
+int flags = (unsigned int)((struct __ecereNameSpace__ecere__com__Application *)(((char *)((struct __ecereNameSpace__ecere__com__Module *)(((char *)_class->module + 12)))->application + 300)))->isGUIApp;
+unsigned int inCompiler = (flags & 8) ? 0x1 : 0x0;
-if(_class->module != __thisModule)
+if(inCompiler)
{
-int flags = (unsigned int)((struct __ecereNameSpace__ecere__com__Application *)(((char *)((struct __ecereNameSpace__ecere__com__Module *)(((char *)_class->module + structSize_Instance)))->application + structSize_Module)))->isGUIApp;
unsigned int force32Bits = (flags & 4) ? 0x1 : 0x0;
-unsigned int inCompiler = (flags & 8) ? 0x1 : 0x0;
-if(force32Bits && inCompiler)
+if(force32Bits)
{
if(!strcmp(_class->name, "Module"))
size = 560;
#endif
{
int size = _class.structSize;
- if(_class.module != __thisModule)
+ int flags = _class.module.application.isGUIApp;
+ bool inCompiler = (flags & 8) ? true : false;
+ if(inCompiler)
{
- int flags = _class.module.application.isGUIApp;
bool force32Bits = (flags & 4) ? true : false;
- bool inCompiler = (flags & 8) ? true : false;
- if(force32Bits && inCompiler)
+ if(force32Bits)
{
// Allocate 64 bit sizes for these when cross-compiling for 32 bit to allow loaded libraries to work properly
if(!strcmp(_class.name, "Module"))