Skip to content

Conversation

@gao-sun
Copy link
Owner

@gao-sun gao-sun commented Jan 23, 2022

use throw to assert SMCParamStruct size to make eul runnable in Apple Silicon Macs

assert(MemoryLayout<SMCParamStruct>.stride == 80, "SMCParamStruct size is != 80")
guard MemoryLayout<SMCParamStruct>.stride == 80 else {
throw SMCError.paramStructSizeMismatched
}
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Нормально, кати

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

needs review PR needs review

6 participants