Skip to content

Commit a5ce58f

Browse files
committed
check c structs size
1 parent 2b462b1 commit a5ce58f

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

src/LibXLS.jl

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,4 +13,16 @@ include("types.jl")
1313
include("workbook.jl")
1414
include("worksheet.jl")
1515

16+
function __init__()
17+
@assert sizeof(st_sheet) == 16
18+
@assert sizeof(st_sheet_data) == 16
19+
@assert sizeof(st_sst) == 32
20+
@assert sizeof(st_cell_data) == 40
21+
@assert sizeof(st_cell) == 16
22+
@assert sizeof(st_row) == 16
23+
@assert sizeof(st_row_data) == 32
24+
@assert sizeof(st_colinfo) == 16
25+
@assert sizeof(st_colinfo_data) == 10
26+
end
27+
1628
end

0 commit comments

Comments
 (0)