4 Star 8 Fork 0

Gitee 极速下载 / htop

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
此仓库是为了提升国内下载速度的镜像仓库,每日同步一次。 原始仓库: https://github.com/htop-dev/htop
克隆/下载
Object.c 548 Bytes
一键复制 编辑 原始数据 按行查看 历史
/*
htop - Object.c
(C) 2004-2012 Hisham H. Muhammad
(C) 2020 Red Hat, Inc. All Rights Reserved.
Released under the GNU GPLv2, see the COPYING file
in the source distribution for its full text.
*/
#include "Object.h"
#include <stddef.h>
const ObjectClass Object_class = {
.extends = NULL
};
bool Object_isA(const Object* o, const ObjectClass* klass) {
if (!o)
return false;
for (const ObjectClass* type = o->klass; type; type = type->extends) {
if (type == klass) {
return true;
}
}
return false;
}
C
1
https://gitee.com/mirrors/htop.git
git@gitee.com:mirrors/htop.git
mirrors
htop
htop
master

搜索帮助