Changeset 266 for trunk/thune/eval.c

Show
Ignore:
Timestamp:
08/30/06 18:59:53 (2 years ago)
Author:
krobillard
Message:

Thune - ur_tokenize() now throws errors.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • trunk/thune/eval.c

    r262 r266  
    715715                                                 str->ptr.c + val->series.it, 
    716716                                                 str->ptr.c + str->used, 0 ); 
    717                             if( tblkN ) 
    718                             { 
    719                                 _infuseOpcodes( ur_thread, tblkN ); 
    720                                 ur_setSeries(val, tblkN, 0); 
    721                                 goto do_block; 
    722                             } 
     717                            if( ! tblkN ) 
     718                                goto throw_cc; 
     719 
     720                            _infuseOpcodes( ur_thread, tblkN ); 
     721                            ur_setSeries(val, tblkN, 0); 
     722                            goto do_block; 
    723723                        } 
    724724                        goto execute; 
     
    14051405            return ur_eval( ur_thread, blkN, 0 ); 
    14061406        } 
     1407        return UR_EVAL_ERROR; 
    14071408    } 
    14081409    return UR_EVAL_OK; 
     
    14251426 
    14261427/** 
    1427   Thow error from call.  The error is pushed onto the stack. 
     1428  Throw error from call.  The error is pushed onto the stack. 
    14281429*/ 
    14291430void ur_throwErr( UThread* ur_thread, int exceptionType, const char* fmt, ... )