1
0
Fork 0
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:
Brian Fiete 2025-01-17 10:45:59 -08:00
parent 4884bef9d2
commit f812cf6eea

View file

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