IncompleteStruct编译指示IncompleteStruct编译指示incompleteStruct 编译指示告诉编译器不要在 sizeof 表达式中使用底层的C struct : type DIR* {.importc: "DIR", header: "<dirent.h>", pure, incompleteStruct.} = object