Assert on unknown operand type (thanks Kate!)
authorEthan Lee <flibitijibibo@flibitijibibo.com>
Wed, 29 May 2019 16:52:12 -0400
changeset 1206 8073819b258d
parent 1205 59d969911962
child 1207 c4a393403859
Assert on unknown operand type (thanks Kate!)
mojoshader.c
--- a/mojoshader.c	Wed May 29 16:48:58 2019 -0400
+++ b/mojoshader.c	Wed May 29 16:52:12 2019 -0400
@@ -2724,6 +2724,10 @@
                         preshader->temp_count = item + 1;
                     break;
                 } // case
+
+                default:
+                    assert(0 && "Unhandled fxlc.tokens[1] in parse_preshader!");
+                    break;
             } // switch
 
             operand->index = item;