Ignore:
Timestamp:
Apr 17, 2011, 11:56:55 PM (10 years ago)
Author:
Sam Hocevar
Message:

lisp: implement LObject::Eval.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • abuse/trunk/src/game.cpp

    r494 r496  
    12561256
    12571257    int i;
    1258     char *str = lstring_value(eval(LSymbol::FindOrCreate("plot_start")));
     1258    char *str = lstring_value(LSymbol::FindOrCreate("plot_start")->Eval());
    12591259
    12601260    bFILE *fp = open_file("art/smoke.spe", "rb");
     
    23112311                while(*s)
    23122312                {
    2313                     void *prog = compile(s);
     2313                    LObject *prog = LObject::Compile(s);
    23142314                    l_user_stack.push(prog);
    23152315                    while(*s==' ' || *s=='\t' || *s=='\r' || *s=='\n') s++;
    2316                     ((LObject *)eval(prog))->Print();
     2316                    prog->Eval()->Print();
    23172317                    l_user_stack.pop(1);
    23182318                }
Note: See TracChangeset for help on using the changeset viewer.