Annotation of parser3/src/types/pa_vstateless_class.C, revision 1.8

1.8     ! paf         1: /**    @file
        !             2:        Parser: stateless class.
        !             3: 
1.2       paf         4:        Copyright (c) 2001 ArtLebedev Group (http://www.artlebedev.com)
1.8     ! paf         5: 
1.2       paf         6:        Author: Alexander Petrosyan <paf@design.ru> (http://design.ru/paf)
                      7: 
1.8     ! paf         8:        $Id: pa_vstateless_class.C,v 1.7 2001/03/30 05:53:04 paf Exp $
1.2       paf         9: */
                     10: 
                     11: #include "pa_vstateless_class.h"
                     12: #include "pa_vstring.h"
                     13: 
                     14: void VStateless_class::add_native_method(
                     15:        const char *cstr_name,
1.7       paf        16:        Method::Call_type call_type,
1.2       paf        17:        Native_code_ptr native_code,
                     18:        int min_numbered_params_count, int max_numbered_params_count) {
                     19: 
1.4       paf        20:        String& name=*NEW String(pool(), cstr_name);
1.2       paf        21:        
                     22:        Method& method=*NEW Method(pool(),
                     23:                name,
1.7       paf        24:                call_type,
1.2       paf        25:                min_numbered_params_count, max_numbered_params_count,
                     26:                0/*params_names*/, 0/*locals_names*/,
                     27:                0/*parser_code*/, native_code
                     28:                );
                     29:        add_method(name, method);
                     30: }

E-mail: