I have only seen in tutorials how to define it with one or possibly infinite arguments. I am using this kind of macro:

#define DEFUN( name, argcount, fpointer) do { \
    cl_def_c_function(c_string_to_object(name), \
            (cl_objectfn_fixed)fpointer, \
            argcount); \
    } while (0)

which works fine for functions defined as
cl_object foo(cl_narg narg, ...)

but how can you do the same for functions with lets say one argument?

I tried
cl_object foo(cl_narg narg, cl_object v1, ...)

but then argument v1 is total garbage.


--
Bc. Peter Vaņu¹anik
http://www.bishojo.tk