Skip to content

Commit f291ed8

Browse files
authored
builtin: make public the FnGC_WarnCB alias (#23633)
1 parent 535b04f commit f291ed8

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

‎vlib/builtin/builtin_d_gcboehm.c.v‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -225,7 +225,7 @@ fn C.GC_get_sp_corrector() fn (voidptr, voidptr)
225225
fn C.GC_set_sp_corrector(fn (voidptr, voidptr))
226226

227227
// GC warnings are silenced by default, but can be redirected to a custom cb function by programs too:
228-
type FnGC_WarnCB = fn (msg &char, arg usize)
228+
pub type FnGC_WarnCB = fn (msg &char, arg usize)
229229

230230
fn C.GC_get_warn_proc() FnGC_WarnCB
231231
fn C.GC_set_warn_proc(cb FnGC_WarnCB)

‎vlib/builtin/builtin_notd_gcboehm.c.v‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ pub fn gc_disable() {}
4949
// When the GC is not on, (with `-gc none`), it is a NOP.
5050
pub fn gc_collect() {}
5151

52-
type FnGC_WarnCB = fn (msg &char, arg usize)
52+
pub type FnGC_WarnCB = fn (msg &char, arg usize)
5353

5454
fn C.GC_get_warn_proc() FnGC_WarnCB
5555
fn C.GC_set_warn_proc(cb FnGC_WarnCB)

0 commit comments

Comments
 (0)