ldmud/test/t-python/testcompileargcheck.c
Alexander Motzkau 012214967f Corrected checks for Python efun calls with ellipsis.
When checking the number of arguments for calls to Python efuns,
the existence of ellipsis in the argument list were ignored,
resulting in false compile errors.
2020-04-28 22:30:06 +02:00

7 lines
159 B
C

int check()
{
// This should compile and execute without error
<int|string>* args = ({"A", "", 1, 2});
return python_typecheck(args...) == "A";
}