cdc_object.c
ColdX-0.2-4-dev/src/modules/cdc_object.c · 515 B
From the archive ColdX-0.2-4-dev.tar.gz
Download the archive « Back to the archive contents
/* @@@HEAD@@@
// Miscellaneous operations.
*/
#include "config.h"
#include <stdlib.h>
#include "defs.h"
#include "y.tab.h"
#include "cdc_types.h"
#include "operators.h"
#include "execute.h"
#include "util.h"
#include "lookup.h"
void op_get_dbref(void) {
data_t *args;
long dbref;
if (!func_init_1(&args, SYMBOL))
return;
if (!lookup_retrieve_name(args[0].u.symbol, &dbref)) {
cthrow(namenf_id, "Cannot find object %I.", args[0].u.symbol);
return;
}
pop(1);
push_dbref(dbref);
}