diff runtime/object.c @ 30:914ad38f9b59

Compiler now works for some simple programs
author Mike Pavone <pavone@retrodev.com>
date Mon, 28 Sep 2009 19:42:33 -0400
parents 31f8182f3433
children df038cef648b
line wrap: on
line diff
--- a/runtime/object.c	Sat Jun 27 01:50:33 2009 -0400
+++ b/runtime/object.c	Mon Sep 28 19:42:33 2009 -0400
@@ -341,3 +341,11 @@
 	}
 	bp->method_lookup[methodid-bp->first_methodid] = impl;
 }
+
+blueprint * get_blueprint_byid(uint32_t type)
+{
+	if(type >= max_registered_type)
+		return NULL;
+	return registered_types[type];
+}
+