vbscript: Added interp_lt implementation.
This commit is contained in:
parent
4df350bb22
commit
ac5db68d02
@ -975,8 +975,18 @@ static HRESULT interp_gteq(exec_ctx_t *ctx)
|
|||||||
|
|
||||||
static HRESULT interp_lt(exec_ctx_t *ctx)
|
static HRESULT interp_lt(exec_ctx_t *ctx)
|
||||||
{
|
{
|
||||||
FIXME("\n");
|
VARIANT v;
|
||||||
return E_NOTIMPL;
|
HRESULT hres;
|
||||||
|
|
||||||
|
TRACE("\n");
|
||||||
|
|
||||||
|
hres = cmp_oper(ctx);
|
||||||
|
if(FAILED(hres))
|
||||||
|
return hres;
|
||||||
|
|
||||||
|
V_VT(&v) = VT_BOOL;
|
||||||
|
V_BOOL(&v) = hres == VARCMP_LT ? VARIANT_TRUE : VARIANT_FALSE;
|
||||||
|
return stack_push(ctx, &v);
|
||||||
}
|
}
|
||||||
|
|
||||||
static HRESULT interp_lteq(exec_ctx_t *ctx)
|
static HRESULT interp_lteq(exec_ctx_t *ctx)
|
||||||
|
@ -124,6 +124,8 @@ Call ok(false > true, "! false < true")
|
|||||||
Call ok(0 > true, "! 0 > true")
|
Call ok(0 > true, "! 0 > true")
|
||||||
Call ok(not (true > 0), "true > 0")
|
Call ok(not (true > 0), "true > 0")
|
||||||
Call ok(not (0 > 1 = 1), "0 > 1 = 1")
|
Call ok(not (0 > 1 = 1), "0 > 1 = 1")
|
||||||
|
Call ok(1 < 2, "! 1 < 2")
|
||||||
|
Call ok(1 = 1 < 0, "! 1 = 1 < 0")
|
||||||
|
|
||||||
x = 3
|
x = 3
|
||||||
Call ok(2+2 = 4, "2+2 = " & (2+2))
|
Call ok(2+2 = 4, "2+2 = " & (2+2))
|
||||||
|
Loading…
x
Reference in New Issue
Block a user