Compile fix for VisualStudio

This commit is contained in:
amai2012 2019-09-18 22:07:42 +02:00
parent 5355df8b6e
commit d97c826319
1 changed files with 7 additions and 2 deletions

View File

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