urbit/gen164/3/mug.c

23 lines
453 B
C
Raw Normal View History

2013-09-29 00:21:18 +04:00
/* j/3/mug.c
**
** This file is in the public domain.
*/
#include "all.h"
#include "../pit.h"
/* functions
*/
u2_weak // transfer
2014-08-20 05:39:48 +04:00
j2_mb(Pt3, mug)(
2013-09-29 00:21:18 +04:00
u2_noun cor) // retain
{
u2_noun sam;
2014-08-20 05:39:48 +04:00
if ( u2_none == (sam = u2_cr_at(u2_cv_sam, cor)) ) {
return u2_cm_bail(c3__exit);
2013-09-29 00:21:18 +04:00
} else {
2014-08-20 05:39:48 +04:00
return u2_cr_mug(sam);
2013-09-29 00:21:18 +04:00
}
}