mirror of
https://github.com/beefytech/Beef.git
synced 2025-06-08 19:48:20 +02:00
ParseMemorySpan disable with BF_SMALL
This commit is contained in:
parent
4884bef9d2
commit
f812cf6eea
1 changed files with 2 additions and 0 deletions
|
@ -1382,6 +1382,7 @@ void Beefy::BFFatalError(const char* message, const char* file, int line)
|
||||||
|
|
||||||
bool Beefy::ParseMemorySpan(const StringImpl& str, void*& outPtr, int& outSize)
|
bool Beefy::ParseMemorySpan(const StringImpl& str, void*& outPtr, int& outSize)
|
||||||
{
|
{
|
||||||
|
#ifndef BF_SMALL
|
||||||
if (str.StartsWith("@"))
|
if (str.StartsWith("@"))
|
||||||
{
|
{
|
||||||
int colon = (int)str.IndexOf(':');
|
int colon = (int)str.IndexOf(':');
|
||||||
|
@ -1391,5 +1392,6 @@ bool Beefy::ParseMemorySpan(const StringImpl& str, void*& outPtr, int& outSize)
|
||||||
outSize = (int)strtol(lenStr.c_str(), NULL, 10);
|
outSize = (int)strtol(lenStr.c_str(), NULL, 10);
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
#endif
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue