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

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)
1.2     ! paf         6: */
1.1       paf         7: 
1.2     ! paf         8: static const char* IDENT_VALUE_C="$Id: zzz $";
1.1       paf         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: