Changeset 179 for trunk/thune/eval.c
- Timestamp:
- 06/10/06 02:17:23 (3 years ago)
- Files:
-
- 1 modified
-
trunk/thune/eval.c (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/thune/eval.c
r178 r179 377 377 // default: leave tos unchanged... 378 378 } 379 } 380 381 382 // (val do-true do-false -- ) 383 UR_CALL( uc_either ) 384 { 385 UCell* res = ur_s_backN(tos, 2); 386 387 if( ur_is(res, UT_NONE) || 388 (ur_is(res, UT_LOGIC) && ! ur_logic(res)) ) 389 { 390 ur_copyCell( res, *tos ); 391 } 392 else 393 { 394 ur_copyCell( res, *(ur_s_prev(tos)) ); 395 } 396 397 UR_S_DROPN(2); 398 uc_do( ur_thread, res ); 379 399 } 380 400 … … 2119 2139 { uc_typeQ, "type?" }, 2120 2140 { uc_typeQ_word, "type?.word" }, 2141 { uc_either, "either" }, 2121 2142 { uc_to_text, "to-text" }, 2122 2143 { uc_console_out, "console.out" },
