]> git.draconx.ca Git - upkg.git/commit
uobject: Make module loader understand exports/imports.
authorNick Bowler <nbowler@draconx.ca>
Mon, 21 May 2012 01:34:42 +0000 (21:34 -0400)
committerNick Bowler <nbowler@draconx.ca>
Mon, 21 May 2012 01:34:42 +0000 (21:34 -0400)
commitd78fbc3a4f4bdef475f85b0c1ebeaddd74cce141
tree23381ac81920505c0019048e07d3c89c551c12e3
parent687c74b6b8cc9eb6015c279a0c757ca3c0047697
uobject: Make module loader understand exports/imports.

It's possible for a package to have an instance of a class defined in
that same package; therefore the module loader needs to know about this.
Bring the export class index up to the public struct so that it's
possible to tell the difference.

This makes it possible to export the textures defined in Engine.u.
There's still a few vestigial bugs left over here, but we can fix those
later.
src/libupkg.c
src/uobject/module.c
src/uobject/module.h
src/uobject/uobject.c
src/upkg.h