summaryrefslogtreecommitdiffstats
path: root/source
diff options
context:
space:
mode:
authorTim Foley <tfoleyNV@users.noreply.github.com>2020-06-17 16:30:18 -0700
committerGitHub <noreply@github.com>2020-06-17 16:30:18 -0700
commitd1a8cd23d15d0001131b6f01b0c9bc461279f760 (patch)
tree65fffcc653624549d82e20a46c081fa795ce1f13 /source
parentcd7f01b63a52eaaad00088524801e502bcb0f168 (diff)
Add != operator for enum types (#1394)
This was an oversight in the stdlib, and the `!=` definition follows the `==` in a straightforward fashion.
Diffstat (limited to 'source')
-rw-r--r--source/slang/core.meta.slang4
1 files changed, 4 insertions, 0 deletions
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<E : __EnumType>
__intrinsic_op($(kIROp_Eql))
bool operator==(E left, E right);
+__generic<E : __EnumType>
+__intrinsic_op($(kIROp_Neq))
+bool operator!=(E left, E right);
+
// Binding Attributes
__attributeTarget(DeclBase)