34
34
35
35
#if MICROPY_PY_EXAMPLE
36
36
37
- // def func_a():
37
+ // def func_a()
38
38
STATIC mp_obj_t mod_example_func_a (void ) {
39
39
// TODO
40
40
return mp_const_none ;
41
41
}
42
42
MP_DEFINE_CONST_FUN_OBJ_0 (mod_example_func_a_obj , mod_example_func_a );
43
43
44
- // def func_b(arg1):
44
+ // def func_b(arg1)
45
45
STATIC mp_obj_t mod_example_func_b (mp_obj_t arg1 ) {
46
46
// TODO
47
47
return mp_const_none ;
48
48
}
49
49
MP_DEFINE_CONST_FUN_OBJ_1 (mod_example_func_b_obj , mod_example_func_b );
50
50
51
- // def func_c(arg1, arg2):
51
+ // def func_c(arg1, arg2) -> None
52
52
STATIC mp_obj_t mod_example_func_c (mp_obj_t arg1 , mp_obj_t arg2 ) {
53
53
// TODO
54
54
return mp_const_none ;
55
55
}
56
56
MP_DEFINE_CONST_FUN_OBJ_2 (mod_example_func_c_obj , mod_example_func_c );
57
57
58
- // def func_d(arg1, arg2, arg3):
58
+ // def func_d(arg1, arg2, arg3) -> int
59
59
STATIC mp_obj_t mod_example_func_d (mp_obj_t arg1 , mp_obj_t arg2 , mp_obj_t arg3 ) {
60
60
// TODO
61
61
return mp_const_none ;
62
62
}
63
63
MP_DEFINE_CONST_FUN_OBJ_3 (mod_example_func_d_obj , mod_example_func_d );
64
64
65
- // def func_e(arg1, arg2, arg3, arg4):
65
+ // def func_e(arg1, arg2, arg3, arg4) -> str
66
66
STATIC mp_obj_t mod_example_func_e (size_t n_args , const mp_obj_t * args ) {
67
67
// TODO
68
68
return mp_const_none ;
69
69
}
70
70
MP_DEFINE_CONST_FUN_OBJ_VAR_BETWEEN (mod_example_func_e_obj , 4 , 4 , mod_example_func_e );
71
71
72
- // def func_f(arg1, arg2: int, arg3, arg4, arg5: int=123):
72
+ // def func_f(arg1, arg2: int, arg3, arg4, arg5: int=123) -> bytes
73
73
STATIC mp_obj_t mod_example_func_f (size_t n_args , const mp_obj_t * args ) {
74
74
// TODO
75
75
return mp_const_none ;
76
76
}
77
77
MP_DEFINE_CONST_FUN_OBJ_VAR_BETWEEN (mod_example_func_f_obj , 4 , 5 , mod_example_func_f );
78
78
79
- // def func_g(arg1, arg2, arg3: str='test', arg4=None):
79
+ // def func_g(arg1, arg2, arg3: str='test', arg4=None)
80
80
STATIC mp_obj_t mod_example_func_g (size_t n_args , const mp_obj_t * args ) {
81
81
// TODO
82
82
return mp_const_none ;
83
83
}
84
84
MP_DEFINE_CONST_FUN_OBJ_VAR_BETWEEN (mod_example_func_g_obj , 2 , 4 , mod_example_func_g );
85
85
86
- // def func_h(arg1, arg2, arg3, *args):
86
+ // def func_h(arg1, arg2, arg3, *args)
87
87
STATIC mp_obj_t mod_example_func_h (size_t n_args , const mp_obj_t * args ) {
88
88
// TODO
89
89
return mp_const_none ;
90
90
}
91
91
MP_DEFINE_CONST_FUN_OBJ_VAR (mod_example_func_h_obj , 3 , mod_example_func_h );
92
92
93
- // def func_i(arg1, arg2, **kwargs):
93
+ // def func_i(arg1, arg2, **kwargs)
94
94
STATIC mp_obj_t mod_example_func_i (size_t n_args , const mp_obj_t * args , mp_map_t * kw_args ) {
95
95
// TODO
96
96
return mp_const_none ;
@@ -102,70 +102,70 @@ typedef struct _mp_obj_Class_t {
102
102
mp_obj_base_t base ;
103
103
} mp_obj_Class_t ;
104
104
105
- // def Class.__init__(self, arg1, arg2):
105
+ // def Class.__init__(self, arg1, arg2)
106
106
STATIC mp_obj_t mod_example_Class_make_new (const mp_obj_type_t * type , size_t n_args , size_t n_kw , const mp_obj_t * args ) {
107
107
mp_obj_Class_t * o = m_new_obj (mp_obj_Class_t );
108
108
o -> base .type = type ;
109
109
return MP_OBJ_FROM_PTR (o );
110
110
}
111
111
112
- // def Class.func_a(self):
112
+ // def Class.func_a(self)
113
113
STATIC mp_obj_t mod_example_Class_func_a (mp_obj_t self ) {
114
114
// TODO
115
115
return mp_const_none ;
116
116
}
117
117
MP_DEFINE_CONST_FUN_OBJ_1 (mod_example_Class_func_a_obj , mod_example_Class_func_a );
118
118
119
- // def Class.func_b(self, arg1):
119
+ // def Class.func_b(self, arg1)
120
120
STATIC mp_obj_t mod_example_Class_func_b (mp_obj_t self , mp_obj_t arg1 ) {
121
121
// TODO
122
122
return mp_const_none ;
123
123
}
124
124
MP_DEFINE_CONST_FUN_OBJ_2 (mod_example_Class_func_b_obj , mod_example_Class_func_b );
125
125
126
- // def Class.func_c(self, arg1, arg2):
126
+ // def Class.func_c(self, arg1, arg2) -> None
127
127
STATIC mp_obj_t mod_example_Class_func_c (mp_obj_t self , mp_obj_t arg1 , mp_obj_t arg2 ) {
128
128
// TODO
129
129
return mp_const_none ;
130
130
}
131
131
MP_DEFINE_CONST_FUN_OBJ_3 (mod_example_Class_func_c_obj , mod_example_Class_func_c );
132
132
133
- // def Class.func_d(self, arg1, arg2, arg3):
133
+ // def Class.func_d(self, arg1, arg2, arg3) -> int
134
134
STATIC mp_obj_t mod_example_Class_func_d (size_t n_args , const mp_obj_t * args ) {
135
135
// TODO
136
136
return mp_const_none ;
137
137
}
138
138
MP_DEFINE_CONST_FUN_OBJ_VAR_BETWEEN (mod_example_Class_func_d_obj , 4 , 4 , mod_example_Class_func_d );
139
139
140
- // def Class.func_e(self, arg1, arg2, arg3, arg4):
140
+ // def Class.func_e(self, arg1, arg2, arg3, arg4) -> str
141
141
STATIC mp_obj_t mod_example_Class_func_e (size_t n_args , const mp_obj_t * args ) {
142
142
// TODO
143
143
return mp_const_none ;
144
144
}
145
145
MP_DEFINE_CONST_FUN_OBJ_VAR_BETWEEN (mod_example_Class_func_e_obj , 5 , 5 , mod_example_Class_func_e );
146
146
147
- // def Class.func_f(self, arg1, arg2: int, arg3, arg4, arg5: int=123):
147
+ // def Class.func_f(self, arg1, arg2: int, arg3, arg4, arg5: int=123) -> bytes
148
148
STATIC mp_obj_t mod_example_Class_func_f (size_t n_args , const mp_obj_t * args ) {
149
149
// TODO
150
150
return mp_const_none ;
151
151
}
152
152
MP_DEFINE_CONST_FUN_OBJ_VAR_BETWEEN (mod_example_Class_func_f_obj , 5 , 6 , mod_example_Class_func_f );
153
153
154
- // def Class.func_g(self, arg1, arg2, arg3: str='test', arg4=None):
154
+ // def Class.func_g(self, arg1, arg2, arg3: str='test', arg4=None)
155
155
STATIC mp_obj_t mod_example_Class_func_g (size_t n_args , const mp_obj_t * args ) {
156
156
// TODO
157
157
return mp_const_none ;
158
158
}
159
159
MP_DEFINE_CONST_FUN_OBJ_VAR_BETWEEN (mod_example_Class_func_g_obj , 3 , 5 , mod_example_Class_func_g );
160
160
161
- // def Class.func_h(self, arg1, arg2, arg3, *args):
161
+ // def Class.func_h(self, arg1, arg2, arg3, *args)
162
162
STATIC mp_obj_t mod_example_Class_func_h (size_t n_args , const mp_obj_t * args ) {
163
163
// TODO
164
164
return mp_const_none ;
165
165
}
166
166
MP_DEFINE_CONST_FUN_OBJ_VAR (mod_example_Class_func_h_obj , 4 , mod_example_Class_func_h );
167
167
168
- // def Class.func_i(self, arg1, arg2, **kwargs):
168
+ // def Class.func_i(self, arg1, arg2, **kwargs)
169
169
STATIC mp_obj_t mod_example_Class_func_i (size_t n_args , const mp_obj_t * args , mp_map_t * kw_args ) {
170
170
// TODO
171
171
return mp_const_none ;
0 commit comments