Skip to content
Snippets Groups Projects
Commit 08e9470a authored by q3k's avatar q3k
Browse files

uctx: reformat

parent d63d65b8
No related branches found
No related tags found
No related merge requests found
......@@ -121,19 +121,18 @@ void gc_collect(void);
MP_DEFINE_CONST_FUN_OBJ_VAR_BETWEEN(mp_ctx_##name##_obj, 7, 7, \
mp_ctx_##name);
#define MP_CTX_COMMON_FUN_6FI(name) \
static mp_obj_t mp_ctx_##name(size_t n_args, const mp_obj_t *args) { \
assert(n_args == 7); \
mp_ctx_obj_t *self = MP_OBJ_TO_PTR(args[0]); \
ctx_##name(self->ctx, (float)mp_obj_get_float(args[1]), \
(float)mp_obj_get_float(args[2]), \
(float)mp_obj_get_float(args[3]), \
(float)mp_obj_get_float(args[4]), \
(float)mp_obj_get_float(args[5]), \
mp_obj_get_int(args[6])); \
return self; \
} \
MP_DEFINE_CONST_FUN_OBJ_VAR_BETWEEN(mp_ctx_##name##_obj, 7, 7, \
#define MP_CTX_COMMON_FUN_6FI(name) \
static mp_obj_t mp_ctx_##name(size_t n_args, const mp_obj_t *args) { \
assert(n_args == 7); \
mp_ctx_obj_t *self = MP_OBJ_TO_PTR(args[0]); \
ctx_##name(self->ctx, (float)mp_obj_get_float(args[1]), \
(float)mp_obj_get_float(args[2]), \
(float)mp_obj_get_float(args[3]), \
(float)mp_obj_get_float(args[4]), \
(float)mp_obj_get_float(args[5]), mp_obj_get_int(args[6])); \
return self; \
} \
MP_DEFINE_CONST_FUN_OBJ_VAR_BETWEEN(mp_ctx_##name##_obj, 7, 7, \
mp_ctx_##name);
#define MP_CTX_COMMON_FUN_7F(name) \
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment