#ifndef PTYCON_INIT_IMPL_H #define PTYCON_INIT_IMPL_H #include #include extern const ntapi_vtbl * ptyc_ntapi; static inline int ptyc_init(void) { int32_t status; ntapi_vtbl * pvtbl; if ((status = ntapi_init(&pvtbl))) return status; at_locked_cas( (intptr_t *)&ptyc_ntapi, 0,(intptr_t)pvtbl); return 0; } #endif