mirror of
https://gitee.com/apaki/cmake_demo.git
synced 2025-05-17 20:01:36 +08:00
修改this为pthis,防止在cpp上编译不通过(和关键字冲突)
This commit is contained in:
parent
52155db7e8
commit
2aca923437
8
main.c
8
main.c
@ -46,14 +46,14 @@ struct _shape
|
||||
|
||||
void shape_area(void *self)
|
||||
{
|
||||
struct _shape *this = (struct _shape *)self;
|
||||
this->vtb->area(self);
|
||||
struct _shape *pthis = (struct _shape *)self;
|
||||
pthis->vtb->area(self);
|
||||
}
|
||||
|
||||
void shape_draw(void *self)
|
||||
{
|
||||
struct _shape *this = (struct _shape *)self;
|
||||
this->vtb->draw(self);
|
||||
struct _shape *pthis = (struct _shape *)self;
|
||||
pthis->vtb->draw(self);
|
||||
}
|
||||
|
||||
PRIVATE void _shape_area(void *self)
|
||||
|
Loading…
Reference in New Issue
Block a user