bugfix: move env related macros from port.h to proc.h
This commit is contained in:
parent
073f45666a
commit
759c9eb55c
|
@ -23,9 +23,6 @@ struct pic_port {
|
|||
};
|
||||
|
||||
#define pic_port_p(v) (pic_type(v) == PIC_TT_PORT)
|
||||
#define pic_env_p(v) (pic_type(v) == PIC_TT_ENV)
|
||||
|
||||
#define pic_port_ptr(v) ((struct pic_port *)(v).u.data)
|
||||
#define pic_env_ptr(v) ((struct pic_env *)(v).u.data)
|
||||
|
||||
#endif
|
||||
|
|
|
@ -19,8 +19,10 @@ struct pic_proc {
|
|||
};
|
||||
|
||||
#define pic_proc_p(o) (pic_type(o) == PIC_TT_PROC)
|
||||
#define pic_env_p(o) (pic_type(o) == PIC_TT_ENV)
|
||||
|
||||
#define pic_proc_ptr(o) ((struct pic_proc *)(o).u.data)
|
||||
#define pic_env_ptr(o) ((struct pic_env *)(o).u.data)
|
||||
|
||||
#define pic_proc_cfunc_p(o) (pic_proc_ptr(o)->cfunc_p)
|
||||
|
||||
|
|
Loading…
Reference in New Issue