Fix various build issuesin uncommon configurations

This commit is contained in:
Wojtek Figat
2025-11-14 00:52:14 -08:00
parent e9070b30a0
commit 4008e19ca9
10 changed files with 27 additions and 24 deletions

View File

@@ -23,6 +23,10 @@ private:
StringAnsiView _fullname;
uint32 _types = 0;
mutable uint32 _size = 0;
#else
StringAnsiView _name;
StringAnsiView _namespace;
StringAnsiView _fullname;
#endif
MAssembly* _assembly;

View File

@@ -19,6 +19,8 @@ protected:
#elif USE_NETCORE
void* _handle;
StringAnsiView _name;
#else
StringAnsiView _name;
#endif
mutable MMethod* _addMethod;

View File

@@ -24,6 +24,8 @@ protected:
void* _type;
int32 _fieldOffset;
StringAnsiView _name;
#else
StringAnsiView _name;
#endif
MClass* _parentClass;

View File

@@ -30,6 +30,8 @@ protected:
mutable void* _returnType;
mutable Array<void*, InlinedAllocation<8>> _parameterTypes;
void CacheSignature() const;
#else
StringAnsiView _name;
#endif
MClass* _parentClass;
MVisibility _visibility;

View File

@@ -22,6 +22,8 @@ protected:
#elif USE_NETCORE
void* _handle;
StringAnsiView _name;
#else
StringAnsiView _name;
#endif
mutable MMethod* _getMethod;

View File

@@ -93,6 +93,8 @@ ScriptingObject::ScriptingObject(const SpawnParams& params)
: _gcHandle((MGCHandle)params.Managed)
#elif !COMPILE_WITHOUT_CSHARP
: _gcHandle(params.Managed ? MCore::GCHandle::New(params.Managed) : 0)
#else
: _gcHandle(0)
#endif
, _type(params.Type)
, _id(params.ID)