From d1a8cd23d15d0001131b6f01b0c9bc461279f760 Mon Sep 17 00:00:00 2001 From: Tim Foley Date: Wed, 17 Jun 2020 16:30:18 -0700 Subject: Add != operator for enum types (#1394) This was an oversight in the stdlib, and the `!=` definition follows the `==` in a straightforward fashion. --- source/slang/core.meta.slang | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'source') diff --git a/source/slang/core.meta.slang b/source/slang/core.meta.slang index b56ca3085..288786a67 100644 --- a/source/slang/core.meta.slang +++ b/source/slang/core.meta.slang @@ -1808,6 +1808,10 @@ __generic __intrinsic_op($(kIROp_Eql)) bool operator==(E left, E right); +__generic +__intrinsic_op($(kIROp_Neq)) +bool operator!=(E left, E right); + // Binding Attributes __attributeTarget(DeclBase) -- cgit v1.2.3