File tree 2 files changed +16
-9
lines changed
src/gl_generator/generators
2 files changed +16
-9
lines changed Original file line number Diff line number Diff line change @@ -130,16 +130,19 @@ fn write_fnptr_struct_def(ecx: &ExtCtxt) -> Vec<P<ast::Item>> {
130
130
vec ! [
131
131
( quote_item!( ecx,
132
132
pub struct FnPtr {
133
- /// The function pointer that will be used when calling the function.
133
+ // TODO: put back doccomment
134
+ // The function pointer that will be used when calling the function.
134
135
f: * const __gl_imports:: libc:: c_void,
135
- /// True if the pointer points to a real function, false if points to a `panic!` fn.
136
+ // TODO: put back doccomment
137
+ // True if the pointer points to a real function, false if points to a `panic!` fn.
136
138
is_loaded: bool ,
137
139
}
138
140
) ) . unwrap( ) ,
139
141
140
142
( quote_item!( ecx,
141
143
impl FnPtr {
142
- /// Creates a `FnPtr` from a load attempt.
144
+ // TODO: put back doccomment
145
+ // Creates a `FnPtr` from a load attempt.
143
146
pub fn new( ptr: * const __gl_imports:: libc:: c_void, failing_fn: * const __gl_imports:: libc:: c_void) -> FnPtr {
144
147
if ptr. is_null( ) {
145
148
FnPtr { f: failing_fn, is_loaded: false }
Original file line number Diff line number Diff line change @@ -80,16 +80,19 @@ fn write_fnptr_struct_def(ecx: &ExtCtxt) -> Vec<P<ast::Item>> {
80
80
( quote_item!( ecx,
81
81
#[ allow( dead_code) ]
82
82
pub struct FnPtr {
83
- /// The function pointer that will be used when calling the function.
83
+ // TODO: put back doccomment
84
+ // The function pointer that will be used when calling the function.
84
85
f: * const __gl_imports:: libc:: c_void,
85
- /// True if the pointer points to a real function, false if points to a `panic!` fn.
86
+ // TODO: put back doccomment
87
+ // True if the pointer points to a real function, false if points to a `panic!` fn.
86
88
is_loaded: bool ,
87
89
}
88
90
) ) . unwrap( ) ,
89
91
90
92
( quote_item!( ecx,
91
93
impl FnPtr {
92
- /// Creates a `FnPtr` from a load attempt.
94
+ // TODO: put back doccomment
95
+ // Creates a `FnPtr` from a load attempt.
93
96
fn new( ptr: * const __gl_imports:: libc:: c_void,
94
97
failing_fn: * const __gl_imports:: libc:: c_void) -> FnPtr {
95
98
if ptr. is_null( ) {
@@ -99,9 +102,10 @@ fn write_fnptr_struct_def(ecx: &ExtCtxt) -> Vec<P<ast::Item>> {
99
102
}
100
103
}
101
104
102
- /// Returns `true` if the function has been successfully loaded.
103
- ///
104
- /// If it returns `false`, calling the corresponding function will fail.
105
+ // TODO: put back doccomment
106
+ // Returns `true` if the function has been successfully loaded.
107
+ //
108
+ // If it returns `false`, calling the corresponding function will fail.
105
109
#[ inline]
106
110
#[ allow( dead_code) ]
107
111
pub fn is_loaded( & self ) -> bool {
You can’t perform that action at this time.
0 commit comments