gen: pass the number of arguments to o_func_beg()