We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 7a8049a commit f4ba9d0Copy full SHA for f4ba9d0
1 file changed
libcc2rs/src/va_args.rs
@@ -51,6 +51,10 @@ pub struct VaList<'a> {
51
}
52
53
impl<'a> VaList<'a> {
54
+ pub fn empty() -> Self {
55
+ VaList { args: &[], pos: 0 }
56
+ }
57
+
58
pub fn new(args: &'a [VaArg]) -> Self {
59
VaList { args, pos: 0 }
60
0 commit comments