Permalink
Browse files

Fill in the loadlib opcode to actually load bytecode

  • Loading branch information...
atrodo committed Jan 19, 2011
1 parent feaf970 commit ac754af8a10326f2a8dc6da111e2c6d0404c6ce2
Showing with 8 additions and 0 deletions.
  1. +8 −0 core.c
View
8 core.c
@@ -748,6 +748,14 @@ core_exec(Lorito_Interp *interp)
continue;
break;
case OP_loadlib:
+ switch (regtype)
+ {
+ case OP_STR:
+ $P(op->dest) = PMC lorito_load_bytecode(interp, $S(op->src1));
+ break;
+ default:
+ INVALID_OP("loadlib");
+ }
break;
case OP_read:
break;

0 comments on commit ac754af

Please sign in to comment.