mirror of
https://github.com/TorqueGameEngines/Torque3D.git
synced 2026-04-19 19:35:26 +00:00
Merge branch 'development' into NetworkedFields
This commit is contained in:
commit
7e00785b6e
177 changed files with 15502 additions and 3878 deletions
|
|
@ -409,6 +409,8 @@ bool CodeBlock::read(StringTableEntry fileName, Stream &st)
|
|||
U32 totSize = codeLength + lineBreakPairCount * 2;
|
||||
code = new U32[totSize];
|
||||
|
||||
// 0xFF is used as a flag to help compress the bytecode.
|
||||
// If detected, the bytecode is only a U8.
|
||||
for (i = 0; i < codeLength; i++)
|
||||
{
|
||||
U8 b;
|
||||
|
|
@ -442,7 +444,11 @@ bool CodeBlock::read(StringTableEntry fileName, Stream &st)
|
|||
{
|
||||
U32 ip;
|
||||
st.read(&ip);
|
||||
#ifdef TORQUE_CPU_X64
|
||||
*(U64*)(code + ip) = (U64)ste;
|
||||
#else
|
||||
code[ip] = *((U32 *)&ste);
|
||||
#endif
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -1265,10 +1265,6 @@ inline bool& ConsoleObject::getDynamicGroupExpand()
|
|||
EnginePropertyTable _propTable( sizeof( _props ) / sizeof( _props[ 0 ] ) - 1, _props ); \
|
||||
} }
|
||||
|
||||
/// Add an auto-doc for a class.
|
||||
#define ConsoleDocClass( className, docString ) \
|
||||
CLASSDOC( className, docString )
|
||||
|
||||
/// @}
|
||||
|
||||
//------------------------------------------------------------------------------
|
||||
|
|
|
|||
|
|
@ -576,7 +576,7 @@ namespace _Private {
|
|||
uintptr_t( ( ( const char* ) &( ( ( ThisType* ) 16 )->fieldName ) ) - 16 ) // Artificial offset to avoid compiler warnings.
|
||||
|
||||
///
|
||||
#define CLASSDOC( className, doc ) \
|
||||
#define ConsoleDocClass( className, doc ) \
|
||||
template<> const char* EngineClassTypeInfo< className, className::_ClassBase >::smDocString = doc;
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue