Skip to content
Snippets Groups Projects
Commit 1160d13c authored by Jeremy Soller's avatar Jeremy Soller
Browse files

Merge branch 'add_va_list' into 'master'

Add VaList as a primitive

See merge request !5
parents dabcb2d9 fd662045
Branches master
No related tags found
1 merge request!5Add VaList as a primitive
......@@ -45,6 +45,7 @@ pub enum PrimitiveType {
Int64,
Float,
Double,
VaList,
//SizeT,
}
......@@ -79,6 +80,7 @@ impl PrimitiveType {
"i64" | "int64_t" => Some(PrimitiveType::Int64),
"f32" => Some(PrimitiveType::Float),
"f64" => Some(PrimitiveType::Double),
"VaList" => Some(PrimitiveType::VaList),
//"size_t" => Some(PrimitiveType::SizeT),
_ => None,
}
......@@ -112,6 +114,7 @@ impl PrimitiveType {
&PrimitiveType::Int64 => "i64",
&PrimitiveType::Float => "f32",
&PrimitiveType::Double => "f64",
&PrimitiveType::VaList => "va_list",
//&PrimitiveType::SizeT => "size_t",
}
}
......@@ -144,6 +147,7 @@ impl PrimitiveType {
&PrimitiveType::Int64 => "int64_t",
&PrimitiveType::Float => "float",
&PrimitiveType::Double => "double",
&PrimitiveType::VaList => "va_list",
//&PrimitiveType::SizeT => "size_t",
}
}
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment