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