Merge branch 'development' into NetworkedFields

This commit is contained in:
Areloch 2018-02-14 00:11:32 -06:00 committed by GitHub
commit 7e00785b6e
177 changed files with 15502 additions and 3878 deletions

View file

@ -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
}
}

View file

@ -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 )
/// @}
//------------------------------------------------------------------------------

View file

@ -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;