clone_object.c

MudOSa4DGD/mudlib/dgd/lib/sys/kfun/clone_object.c · 317 B

From the archive MudOSa4DGD-30.06.98.tar.gz

Download the archive   « Back to the archive contents

/*
 * clone_object.c
 *
 * Clone an object by filename, compile if nescessary
 *
 * (C) Frank Schmidt, Jesus@NorseMUD
 *
 */


/* clone an object */
static object clone_object(string path) {
  object ob;
  if (!(ob=::find_object(path)))
    return ::clone_object(compile_object(path));
  return ::clone_object(ob);
}

Site Stats

Snippets: 1791
Codebases: 571