mirror of
https://github.com/pocketpy/pocketpy
synced 2025-10-20 11:30:18 +00:00
some fix
This commit is contained in:
parent
097a7fe94f
commit
7738142985
@ -25,4 +25,10 @@ inline const char* kPlatformStrings[] = {
|
|||||||
"unknown" // 6
|
"unknown" // 6
|
||||||
};
|
};
|
||||||
|
|
||||||
|
#ifdef _MSC_VER
|
||||||
|
#define PK_UNREACHABLE() __assume(0);
|
||||||
|
#else
|
||||||
|
#define PK_UNREACHABLE() __builtin_unreachable();
|
||||||
|
#endif
|
||||||
|
|
||||||
} // namespace pkpy
|
} // namespace pkpy
|
||||||
|
@ -68,15 +68,3 @@
|
|||||||
#define PK_PLATFORM_SEP '/'
|
#define PK_PLATFORM_SEP '/'
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifdef _MSC_VER
|
|
||||||
#pragma warning (disable:4267)
|
|
||||||
#pragma warning (disable:4100)
|
|
||||||
#pragma warning (disable:4244)
|
|
||||||
#pragma warning (disable:4996)
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#ifdef _MSC_VER
|
|
||||||
#define PK_UNREACHABLE() __assume(0);
|
|
||||||
#else
|
|
||||||
#define PK_UNREACHABLE() __builtin_unreachable();
|
|
||||||
#endif
|
|
||||||
|
@ -1043,11 +1043,11 @@ __NEXT_STEP:
|
|||||||
*p = VAR(CAST(i64, *p) - 1);
|
*p = VAR(CAST(i64, *p) - 1);
|
||||||
} DISPATCH()
|
} DISPATCH()
|
||||||
/*****************************************/
|
/*****************************************/
|
||||||
default: PK_UNREACHABLE();
|
default: PK_UNREACHABLE()
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
/**********************************************************************/
|
/**********************************************************************/
|
||||||
PK_UNREACHABLE();
|
PK_UNREACHABLE()
|
||||||
}catch(InternalException internal){
|
}catch(InternalException internal){
|
||||||
__internal_exception = internal;
|
__internal_exception = internal;
|
||||||
if(internal.type == InternalExceptionType::Unhandled){
|
if(internal.type == InternalExceptionType::Unhandled){
|
||||||
|
@ -1101,7 +1101,7 @@ PyVar VM::vectorcall(int ARGC, int KWARGC, bool op_call){
|
|||||||
callstack.popx(),
|
callstack.popx(),
|
||||||
ArgsView(__vectorcall_buffer, __vectorcall_buffer + co->nlocals)
|
ArgsView(__vectorcall_buffer, __vectorcall_buffer + co->nlocals)
|
||||||
);
|
);
|
||||||
default: PK_UNREACHABLE();
|
default: PK_UNREACHABLE()
|
||||||
};
|
};
|
||||||
|
|
||||||
// simple or normal
|
// simple or normal
|
||||||
|
Loading…
x
Reference in New Issue
Block a user