public static LLVMTypeRef GetScheduledTaskType(this ContextWrapper context) { return(context.GetCachedStructType("scheduled_task", () => new[] { // task function pointer LLVMTypeRef.PointerType(context.ScheduledTaskFunctionType(), 0u), // task state context.VoidPointerType() })); }