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