Compile fix for VisualStudio
This commit is contained in:
parent
5355df8b6e
commit
d97c826319
|
@ -114,8 +114,13 @@ namespace {
|
||||||
memory[varId] = value;
|
memory[varId] = value;
|
||||||
return value;
|
return value;
|
||||||
}
|
}
|
||||||
|
#ifdef _MSC_VER
|
||||||
|
#define NOINLINE __declspec(noinline)
|
||||||
|
#else
|
||||||
|
#define NOINLINE __attribute__((noinline))
|
||||||
|
#endif
|
||||||
|
|
||||||
std::string __attribute__((noinline)) dump() const {
|
std::string NOINLINE dump() const {
|
||||||
std::ostringstream ret;
|
std::ostringstream ret;
|
||||||
for (Memory::const_iterator mem = memory.cbegin(); mem != memory.cend(); ++mem) {
|
for (Memory::const_iterator mem = memory.cbegin(); mem != memory.cend(); ++mem) {
|
||||||
ret << mem->first << "=" << mem->second->name << " " << mem->second->getRange() << "\n";
|
ret << mem->first << "=" << mem->second->name << " " << mem->second->getRange() << "\n";
|
||||||
|
|
Loading…
Reference in New Issue