Annotation of parser3/src/types/pa_value.C, revision 1.1

1.1     ! paf         1: /** @file
        !             2:        Parser: Value class.
        !             3: 
        !             4:        Copyright (c) 2001, 2002 ArtLebedev Group (http://www.artlebedev.com)
        !             5:        Author: Alexandr Petrosian <paf@design.ru> (http://paf.design.ru)
        !             6: 
        !             7:        $Id: pa_valiased.C,v 1.13 2002/02/08 08:30:18 paf Exp $
        !             8: */
        !             9: 
        !            10: #include "pa_value.h"
        !            11: #include "pa_vstateless_class.h"
        !            12: 
        !            13: /// call this before invoking to ensure proper actual numbered params count
        !            14: void Method::check_actual_numbered_params(
        !            15:        Value& self, const String& actual_name, Array *actual_numbered_params) const {
        !            16: 
        !            17:        int actual_count=actual_numbered_params?actual_numbered_params->size():0;
        !            18:        if(actual_count<min_numbered_params_count) // not proper count? bark
        !            19:                throw Exception("parser.runtime",
        !            20:                        &actual_name,
        !            21:                        "native method of %s (%s) accepts minimum %d parameter(s) (%d present)", 
        !            22:                                self.get_class()->name_cstr(),
        !            23:                                self.type(),
        !            24:                                min_numbered_params_count,
        !            25:                                actual_count);
        !            26: 
        !            27: }

E-mail: