Thanks to visit codestin.com
Credit goes to Github.com

Skip to content

v1.6.3#241

Open
gao-sun wants to merge 3 commits intomasterfrom
v1.6.3
Open

v1.6.3#241
gao-sun wants to merge 3 commits intomasterfrom
v1.6.3

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

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants