Exemplo n.º 1
0
naRef naIOGhost(naContext c, FILE* f)
{
    struct naIOGhost* ghost = naAlloc(sizeof(struct naIOGhost));
    ghost->type = &naStdIOType;
    ghost->handle = f;
    return naNewGhost(c, &naIOGhostType, ghost);
}
Exemplo n.º 2
0
static naRef f_newsem(naContext c, naRef me, int argc, naRef* args)
{
    return naNewGhost(c, &SemType, naNewSem());
}
Exemplo n.º 3
0
static naRef f_newlock(naContext c, naRef me, int argc, naRef* args)
{
    return naNewGhost(c, &LockType, naNewLock());
}