You can use MP_OBJ_FUN_ARGS_MAX instead of -1 here, and then you probably don't need the pragmas.