本文整理汇总了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[]);
}