Add enum category example
This commit is contained in:
parent
0f9b90a32b
commit
0b71d7d3b4
5 changed files with 122 additions and 5 deletions
|
|
@ -39,7 +39,7 @@ std::string cpp_function_base::do_get_signature() const
|
|||
{
|
||||
std::string result = "(";
|
||||
for (auto& param : parameters())
|
||||
result += detail::to_string(param.type()) + ',';
|
||||
result += to_string(param.type()) + ',';
|
||||
if (is_variadic())
|
||||
result += "...";
|
||||
|
||||
|
|
|
|||
|
|
@ -581,7 +581,7 @@ void detail::write_type(code_generator::output& output, const cpp_type& type, st
|
|||
write_type_suffix(output, type);
|
||||
}
|
||||
|
||||
std::string detail::to_string(const cpp_type& type)
|
||||
std::string cppast::to_string(const cpp_type& type)
|
||||
{
|
||||
class to_string_generator : public code_generator
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue