We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 09d1555 commit abc6edbCopy full SHA for abc6edb
src/generate.cpp
@@ -603,6 +603,13 @@ void gendlopen::generate()
603
m_defines += "#define " + m_pfx_upper + "_COMMON_PREFIX "
604
"\"" + get_common_prefix(m_prototypes, m_objects) + "\"\n";
605
606
+ /* define if a prototype has variable arguments */
607
+ for (const auto &e : m_prototypes) {
608
+ if (e.args.ends_with("...")) {
609
+ m_defines += "#define " + m_pfx_upper + "_HAS_VA_ARGS_" + e.symbol + " \n";
610
+ }
611
612
+
613
/* create template data */
614
create_template_lists(header_data, body_data);
615
0 commit comments