mirror of
https://github.com/TorqueGameEngines/Torque3D.git
synced 2026-02-12 19:31:41 +00:00
Update propertyParsing.h
bahhh humbug
This commit is contained in:
parent
cd7666bf2a
commit
ee4acc98fe
1 changed files with 9 additions and 9 deletions
|
|
@ -163,15 +163,6 @@ namespace PropertyInfo
|
|||
|
||||
bool default_print(String & result, SimObjectType * const & data);
|
||||
|
||||
template<typename T, size_t count>
|
||||
const char* FormatProperty(const void* dataPtr)
|
||||
{
|
||||
static const U32 bufSize = 256;
|
||||
char* buffer = Con::getReturnBuffer(bufSize);
|
||||
FormatPropertyBuffer<T,count>(dataPtr, buffer, bufSize);
|
||||
return buffer;
|
||||
}
|
||||
|
||||
template<typename T, size_t count>
|
||||
char* FormatPropertyBuffer(const void* dataPtr, char* buffer, U32 bufSize)
|
||||
{
|
||||
|
|
@ -198,6 +189,15 @@ namespace PropertyInfo
|
|||
return ptr; // return end of written string for chaining
|
||||
}
|
||||
|
||||
template<typename T, size_t count>
|
||||
const char* FormatProperty(const void* dataPtr)
|
||||
{
|
||||
static const U32 bufSize = 256;
|
||||
char* buffer = Con::getReturnBuffer(bufSize);
|
||||
FormatPropertyBuffer<T,count>(dataPtr, buffer, bufSize);
|
||||
return buffer;
|
||||
}
|
||||
|
||||
template<typename T, size_t count>
|
||||
inline bool ParseProperty(char* str, T(&out)[count])
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue