本文整理匯總了C#中SimpleForth.Forth.PushBool方法的典型用法代碼示例。如果您正苦於以下問題:C# Forth.PushBool方法的具體用法?C# Forth.PushBool怎麽用?C# Forth.PushBool使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類SimpleForth.Forth
的用法示例。
在下文中一共展示了Forth.PushBool方法的14個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的C#代碼示例。
示例1: IsExecutionToken
public static void IsExecutionToken(Forth f)
{
bool b = (f.dStack.Top is ExecutionToken);
f.dStack.Pop();
f.PushBool(b);
}
示例2: Not
public static void Not(Forth f)
{
bool b = f.PopBool();
f.PushBool(!b);
}
示例3: IsLong
public static void IsLong(Forth f)
{
bool b = (f.dStack.Top is long);
f.dStack.Pop();
f.PushBool(b);
}
示例4: IsNotGreaterThanUnsigned
public static void IsNotGreaterThanUnsigned(Forth f)
{
ulong b = f.PopUInt64();
ulong a = f.PopUInt64();
f.PushBool(a <= b);
}
示例5: IsNotLessThanUnsigned
public static void IsNotLessThanUnsigned(Forth f)
{
ulong b = f.PopUInt64();
ulong a = f.PopUInt64();
f.PushBool(a >= b);
}
示例6: IsNotGreaterThan
public static void IsNotGreaterThan(Forth f)
{
long b = f.PopInt64();
long a = f.PopInt64();
f.PushBool(a <= b);
}
示例7: IsNotLessThan
public static void IsNotLessThan(Forth f)
{
long b = f.PopInt64();
long a = f.PopInt64();
f.PushBool(a >= b);
}
示例8: Equals
public static void Equals(Forth f)
{
ulong b = f.PopUInt64();
ulong a = f.PopUInt64();
f.PushBool(a == b);
}
示例9: DoesNotEqual
public static void DoesNotEqual(Forth f)
{
ulong b = f.PopUInt64();
ulong a = f.PopUInt64();
f.PushBool(a != b);
}
示例10: Within
public static void Within(Forth f)
{
long end = f.PopInt64();
long begin = f.PopInt64();
long mid = f.PopInt64();
f.PushBool(Within(begin, mid, end));
}
示例11: False
public static void False(Forth f)
{
f.PushBool(false);
}
示例12: True
public static void True(Forth f)
{
f.PushBool(true);
}
示例13: IsRealMemory
public static void IsRealMemory(Forth f)
{
object obj = f.dStack.Pop();
f.PushBool(obj is MemoryAccessor);
}
示例14: IsBytes
public static void IsBytes(Forth f)
{
object obj = f.dStack.Pop();
f.PushBool(obj is byte[]);
}