Skip to content

Commit

Permalink
Use load_lang opcode for eval with :lang
Browse files Browse the repository at this point in the history
  • Loading branch information
tene committed Apr 22, 2009
1 parent 2665575 commit fd0a4d5
Showing 1 changed file with 2 additions and 7 deletions.
9 changes: 2 additions & 7 deletions src/builtins/control.pir
Expand Up @@ -356,13 +356,8 @@ on error.
unless have_lang goto no_lang
push_eh catch
$S0 = lang
$S0 = concat 'languages/', $S0
$S0 = concat $S0, '/'
$S1 = lang
$S0 = concat $S0, $S1
$S0 = concat $S0, '.pbc'
load_bytecode $S0
$S0 = lang
$S1 = downcase $S0
load_language $S1
compiler = compreg $S0
goto got_lang
no_lang:
Expand Down

0 comments on commit fd0a4d5

Please sign in to comment.