Skip to content

Commit abc6edb

Browse files
committed
define if a prototype has variable arguments
1 parent 09d1555 commit abc6edb

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

src/generate.cpp

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -603,6 +603,13 @@ void gendlopen::generate()
603603
m_defines += "#define " + m_pfx_upper + "_COMMON_PREFIX "
604604
"\"" + get_common_prefix(m_prototypes, m_objects) + "\"\n";
605605

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+
606613
/* create template data */
607614
create_template_lists(header_data, body_data);
608615

0 commit comments

Comments
 (0)