github.com/ncruces/go-sqlite3@v0.15.1-0.20240520133447-53eef1510ff0/sqlite3/include.h (about) 1 #pragma once 2 3 #include <assert.h> 4 #include <stddef.h> 5 6 // https://github.com/JuliaLang/julia/blob/v1.9.4/src/julia.h#L67-L68 7 #define container_of(ptr, type, member) \ 8 ((type *)((char *)(ptr) - offsetof(type, member))) 9 10 typedef void *go_handle; 11 void go_destroy(go_handle); 12 static_assert(sizeof(go_handle) == 4, "Unexpected size");