File tree Expand file tree Collapse file tree 3 files changed +6
-6
lines changed Expand file tree Collapse file tree 3 files changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -132,7 +132,7 @@ STATIC const mp_map_elem_t ulab_globals_table[] = {
132
132
#if ULAB_HAS_SCIPY
133
133
{ MP_ROM_QSTR (MP_QSTR_scipy ), MP_ROM_PTR (& ulab_scipy_module ) },
134
134
#endif
135
- #if ULAB_USER_MODULE
135
+ #if ULAB_HAS_USER_MODULE
136
136
{ MP_ROM_QSTR (MP_QSTR_user ), MP_ROM_PTR (& ulab_user_module ) },
137
137
#endif
138
138
};
Original file line number Diff line number Diff line change 17
17
#include "py/misc.h"
18
18
#include "user.h"
19
19
20
- #if ULAB_USER_MODULE
20
+ #if ULAB_HAS_USER_MODULE
21
21
22
22
//| """This module should hold arbitrary user-defined functions."""
23
23
//|
@@ -80,12 +80,12 @@ static mp_obj_t user_square(mp_obj_t arg) {
80
80
81
81
MP_DEFINE_CONST_FUN_OBJ_1 (user_square_obj , user_square );
82
82
83
- STATIC const mp_rom_map_elem_t ulab_user_globals_table [] = {
83
+ static const mp_rom_map_elem_t ulab_user_globals_table [] = {
84
84
{ MP_OBJ_NEW_QSTR (MP_QSTR___name__ ), MP_OBJ_NEW_QSTR (MP_QSTR_user ) },
85
85
{ MP_OBJ_NEW_QSTR (MP_QSTR_square ), (mp_obj_t )& user_square_obj },
86
86
};
87
87
88
- STATIC MP_DEFINE_CONST_DICT (mp_module_ulab_user_globals , ulab_user_globals_table );
88
+ static MP_DEFINE_CONST_DICT (mp_module_ulab_user_globals , ulab_user_globals_table ) ;
89
89
90
90
mp_obj_module_t ulab_user_module = {
91
91
.base = { & mp_type_module },
Original file line number Diff line number Diff line change 12
12
#ifndef _USER_
13
13
#define _USER_
14
14
15
- #include "../ ulab.h"
16
- #include "../ ndarray.h"
15
+ #include "ulab.h"
16
+ #include "ndarray.h"
17
17
18
18
extern mp_obj_module_t ulab_user_module ;
19
19
You can’t perform that action at this time.
0 commit comments